title: What is platform_get_resource in Linux driver?
body: <p>Can somebody please explain why and how to use <code>platform_get_resource</code> function ?</p>
  
  <p>I've seen <code>IORESOURCE_MEM</code> is used at many places, like the one <a href="http://lxr.free-electrons.com/source/drivers/spi/spi-omap2-mcspi.c?v=3.4#L1160" rel="nofollow">here</a>, as the second parameter, what does this mean?</p>
  
  <p>I've gone through the links below but could not get the proper explanation.</p>
  
  <ul>
  <li><a href="http://lwn.net/Articles/448499/" rel="nofollow">http://lwn.net/Articles/448499/</a></li>
  <li><a href="http://www.gnugeneration.com/books/linux/2.6.20/kernel-api/re720.html" rel="nofollow">http://www.gnugeneration.com/books/linux/2.6.20/kernel-api/re720.html</a></li>
  </ul>