Skip to content

Commit

Permalink
i2c: pxa: remove incorrect __exit annotations
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
  • Loading branch information
dtor authored and wsakernel committed Feb 21, 2013
1 parent 6beaddf commit 0a6d224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/i2c/busses/i2c-pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,7 @@ static int i2c_pxa_probe(struct platform_device *dev)
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);

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 0a6d224

Please sign in to comment.