From: Shubhrajyoti D Date: Mon, 24 Oct 2011 10:24:24 +0000 (+0530) Subject: OMAP: SPI: Fix the trying to free nonexistent resource error X-Git-Tag: v3.2-rc1~123^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1458d160de3f1862aeaac57447ba96e7857ac52b;p=pandora-kernel.git OMAP: SPI: Fix the trying to free nonexistent resource error 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 Signed-off-by: Grant Likely --- Reading git-diff-tree failed