[PATCH] OMAP: SPI: Fix the trying to free nonexistent resource error

2011-10-24 Thread Shubhrajyoti D
Currently there is a request_mem_region(r-start, .. followed by r-start += pdata-regs_offset; And then in remove r = platform_get_resource(pdev, IORESOURCE_MEM, 0); release_mem_region(r-start, resource_size(r)); Here the offset addition is not taken care. Fix the code for the same.

Re: [PATCH] OMAP: SPI: Fix the trying to free nonexistent resource error

2011-10-24 Thread Grant Likely
On Mon, Oct 24, 2011 at 03:54:24PM +0530, Shubhrajyoti D wrote: Currently there is a request_mem_region(r-start, .. followed by r-start += pdata-regs_offset; And then in remove r = platform_get_resource(pdev, IORESOURCE_MEM, 0); release_mem_region(r-start, resource_size(r)); Here