Shubhrajyoti D 52e17e7874 OMAP: SPI: Fix the trying to free nonexistent resource error
commit 1458d160de3f1862aeaac57447ba96e7857ac52b upstream.

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.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-11 09:43:37 -08:00
..
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00
2011-06-06 01:16:30 -06:00