diff options
author | Shubhrajyoti D <shubhrajyoti@ti.com> | 2012-06-28 20:41:27 +0530 |
---|---|---|
committer | Xavier Boudet <x-boudet@ti.com> | 2012-09-28 10:00:31 +0200 |
commit | ff9258ff79ad2ad2f7105a1f5072a780cc22a0af (patch) | |
tree | 28bcf49e9bcfd4b8129669bb869a84c9e143c9a4 | |
parent | 4822cca9beb356eb0d78fcc5c1fbded1451ed944 (diff) |
i2c: omap: Annotate the remove code
The omap_i2c_remove function may not be needed after
device exit so the memory could be freed.
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
-rw-r--r-- | drivers/i2c/busses/i2c-omap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 63a67b2f940b..b9644616cd8a 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1214,8 +1214,7 @@ err_release_region: return r; } -static int -omap_i2c_remove(struct platform_device *pdev) +static int __devexit omap_i2c_remove(struct platform_device *pdev) { struct omap_i2c_dev *dev = platform_get_drvdata(pdev); struct resource *mem; @@ -1271,7 +1270,7 @@ static struct dev_pm_ops omap_i2c_pm_ops = { static struct platform_driver omap_i2c_driver = { .probe = omap_i2c_probe, - .remove = omap_i2c_remove, + .remove = __devexit_p(omap_i2c_remove), .driver = { .name = "omap_i2c", .owner = THIS_MODULE, |