From: Dmitry Torokhov Date: Tue, 19 Feb 2013 22:50:10 +0000 (+0000) Subject: i2c: pxa: remove incorrect __exit annotations X-Git-Tag: v3.12-rc1~1354^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a6d2246790512c88931ddbfedf3fd48e0979093;p=kernel%2Fkernel-generic.git i2c: pxa: remove incorrect __exit annotations The remove() methods should not be marked __exit unless we are using platform_driver_probe() which disables unbinding device from driver via sysfs. Signed-off-by: Dmitry Torokhov Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index 1034d93..4a79e76 100644 --- a/drivers/i2c/busses/i2c-pxa.c +++ b/drivers/i2c/busses/i2c-pxa.c @@ -1215,7 +1215,7 @@ emalloc: return ret; } -static int __exit i2c_pxa_remove(struct platform_device *dev) +static int i2c_pxa_remove(struct platform_device *dev) { struct pxa_i2c *i2c = platform_get_drvdata(dev); @@ -1269,7 +1269,7 @@ static const struct dev_pm_ops i2c_pxa_dev_pm_ops = { static struct platform_driver i2c_pxa_driver = { .probe = i2c_pxa_probe, - .remove = __exit_p(i2c_pxa_remove), + .remove = i2c_pxa_remove, .driver = { .name = "pxa2xx-i2c", .owner = THIS_MODULE,