From 1458d160de3f1862aeaac57447ba96e7857ac52b Mon Sep 17 00:00:00 2001 From: Shubhrajyoti D Date: Mon, 24 Oct 2011 15:54:24 +0530 Subject: [PATCH] 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-format-patch failed