Commit 0a6d2246 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Wolfram Sang

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: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarWolfram Sang <wolfram@the-dreams.de>
parent 6beaddf2
...@@ -1215,7 +1215,7 @@ static int i2c_pxa_probe(struct platform_device *dev) ...@@ -1215,7 +1215,7 @@ static int i2c_pxa_probe(struct platform_device *dev)
return ret; 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); struct pxa_i2c *i2c = platform_get_drvdata(dev);
...@@ -1269,7 +1269,7 @@ static const struct dev_pm_ops i2c_pxa_dev_pm_ops = { ...@@ -1269,7 +1269,7 @@ static const struct dev_pm_ops i2c_pxa_dev_pm_ops = {
static struct platform_driver i2c_pxa_driver = { static struct platform_driver i2c_pxa_driver = {
.probe = i2c_pxa_probe, .probe = i2c_pxa_probe,
.remove = __exit_p(i2c_pxa_remove), .remove = i2c_pxa_remove,
.driver = { .driver = {
.name = "pxa2xx-i2c", .name = "pxa2xx-i2c",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment