Commit 4ebb52d3 authored by Uwe Kleine-Koenig's avatar Uwe Kleine-Koenig Committed by Jean Delvare

i2c-powermac: Fix section for probe and remove functions

__devexit for i2c_powermac_probe is obviously wrong.  In the definition
of struct platform_driver i2c_powermac_driver the remove function
i2c_powermac_remove is wrapped in __devexit_p, so it should be defined
using __devexit.
Signed-off-by: default avatarUwe Kleine-Koenig <ukleinek@informatik.uni-freiburg.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent fb478da5
...@@ -180,7 +180,7 @@ static const struct i2c_algorithm i2c_powermac_algorithm = { ...@@ -180,7 +180,7 @@ static const struct i2c_algorithm i2c_powermac_algorithm = {
}; };
static int i2c_powermac_remove(struct platform_device *dev) static int __devexit i2c_powermac_remove(struct platform_device *dev)
{ {
struct i2c_adapter *adapter = platform_get_drvdata(dev); struct i2c_adapter *adapter = platform_get_drvdata(dev);
struct pmac_i2c_bus *bus = i2c_get_adapdata(adapter); struct pmac_i2c_bus *bus = i2c_get_adapdata(adapter);
...@@ -200,7 +200,7 @@ static int i2c_powermac_remove(struct platform_device *dev) ...@@ -200,7 +200,7 @@ static int i2c_powermac_remove(struct platform_device *dev)
} }
static int __devexit i2c_powermac_probe(struct platform_device *dev) static int __devinit i2c_powermac_probe(struct platform_device *dev)
{ {
struct pmac_i2c_bus *bus = dev->dev.platform_data; struct pmac_i2c_bus *bus = dev->dev.platform_data;
struct device_node *parent = NULL; struct device_node *parent = NULL;
......
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