aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-pxa.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/i2c/busses/i2c-pxa.c')
-rw-r--r--drivers/i2c/busses/i2c-pxa.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c
index 1034d93fb838..1e88e8d66c55 100644
--- a/drivers/i2c/busses/i2c-pxa.c
+++ b/drivers/i2c/busses/i2c-pxa.c
@@ -1215,12 +1215,10 @@ emalloc:
1215 return ret; 1215 return ret;
1216} 1216}
1217 1217
1218static int __exit i2c_pxa_remove(struct platform_device *dev) 1218static int i2c_pxa_remove(struct platform_device *dev)
1219{ 1219{
1220 struct pxa_i2c *i2c = platform_get_drvdata(dev); 1220 struct pxa_i2c *i2c = platform_get_drvdata(dev);
1221 1221
1222 platform_set_drvdata(dev, NULL);
1223
1224 i2c_del_adapter(&i2c->adap); 1222 i2c_del_adapter(&i2c->adap);
1225 if (!i2c->use_pio) 1223 if (!i2c->use_pio)
1226 free_irq(i2c->irq, i2c); 1224 free_irq(i2c->irq, i2c);
@@ -1269,7 +1267,7 @@ static const struct dev_pm_ops i2c_pxa_dev_pm_ops = {
1269 1267
1270static struct platform_driver i2c_pxa_driver = { 1268static struct platform_driver i2c_pxa_driver = {
1271 .probe = i2c_pxa_probe, 1269 .probe = i2c_pxa_probe,
1272 .remove = __exit_p(i2c_pxa_remove), 1270 .remove = i2c_pxa_remove,
1273 .driver = { 1271 .driver = {
1274 .name = "pxa2xx-i2c", 1272 .name = "pxa2xx-i2c",
1275 .owner = THIS_MODULE, 1273 .owner = THIS_MODULE,