diff options
| author | Shubhrajyoti D <[email protected]> | 2011-10-24 10:24:24 +0000 |
|---|---|---|
| committer | Grant Likely <[email protected]> | 2011-10-24 11:44:30 +0000 |
| commit | 1458d160de3f1862aeaac57447ba96e7857ac52b (patch) | |
| tree | 98565db94ae3af17c6ac4a645f557818ff2e9ef3 /drivers/i2c/algos/i2c-algo-bit.c | |
| parent | Merge commit 'v3.1' into spi/next (diff) | |
| download | kernel-1458d160de3f1862aeaac57447ba96e7857ac52b.tar.gz kernel-1458d160de3f1862aeaac57447ba96e7857ac52b.zip | |
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 <[email protected]>
Signed-off-by: Grant Likely <[email protected]>
Diffstat (limited to 'drivers/i2c/algos/i2c-algo-bit.c')
0 files changed, 0 insertions, 0 deletions
