Skip to content

Commit 05f933d

Browse files
tititiou36wsakernel
authored andcommitted
i2c: nomadik: Remove a useless call in the remove function
Since commit 2356021 ("i2c-nomadik: turn the platform driver to an amba driver"), there is no more request_mem_region() call in this driver. So remove the release_mem_region() call from the remove function which is likely a left over. Fixes: 2356021 ("i2c-nomadik: turn the platform driver to an amba driver") Cc: <[email protected]> # v3.6+ Acked-by: Linus Walleij <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent cb6e45c commit 05f933d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/i2c/busses/i2c-nomadik.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,6 @@ static int nmk_i2c_probe(struct amba_device *adev, const struct amba_id *id)
10381038

10391039
static void nmk_i2c_remove(struct amba_device *adev)
10401040
{
1041-
struct resource *res = &adev->res;
10421041
struct nmk_i2c_dev *dev = amba_get_drvdata(adev);
10431042

10441043
i2c_del_adapter(&dev->adap);
@@ -1047,7 +1046,6 @@ static void nmk_i2c_remove(struct amba_device *adev)
10471046
clear_all_interrupts(dev);
10481047
/* disable the controller */
10491048
i2c_clr_bit(dev->virtbase + I2C_CR, I2C_CR_PE);
1050-
release_mem_region(res->start, resource_size(res));
10511049
}
10521050

10531051
static struct i2c_vendor_data vendor_stn8815 = {

0 commit comments

Comments
 (0)