diff options
author | Jean Delvare <khali@linux-fr.org> | 2006-02-08 14:38:29 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-02-14 01:30:10 -0500 |
commit | 41d9c98fe76298cebc5907bcebfb2db28017a277 (patch) | |
tree | 6b794e2fb6b3ae58d1f2d67db6e6003efd4ef197 /drivers/i2c | |
parent | be79c383254cd3eb50953d8c0a7cacdbf6db31c0 (diff) |
[PATCH] i2c: Drop outdated probe/remove code in i2c-isa
Probe and remove methods are now defined at bus level. No more need to
redefine them at driver level in i2c-isa.
This lets us get rid of these annoying messages:
Driver 'it87-isa' needs updating - please use bus_type methods
Thanks to Nicolas Mailhot for reporting the problem and testing the fix.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-isa.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/i2c/busses/i2c-isa.c b/drivers/i2c/busses/i2c-isa.c index 9f2ffef4d812..4344ae6b1fcb 100644 --- a/drivers/i2c/busses/i2c-isa.c +++ b/drivers/i2c/busses/i2c-isa.c | |||
@@ -72,16 +72,6 @@ static ssize_t show_adapter_name(struct device *dev, | |||
72 | } | 72 | } |
73 | static DEVICE_ATTR(name, S_IRUGO, show_adapter_name, NULL); | 73 | static DEVICE_ATTR(name, S_IRUGO, show_adapter_name, NULL); |
74 | 74 | ||
75 | static int i2c_isa_device_probe(struct device *dev) | ||
76 | { | ||
77 | return -ENODEV; | ||
78 | } | ||
79 | |||
80 | static int i2c_isa_device_remove(struct device *dev) | ||
81 | { | ||
82 | return 0; | ||
83 | } | ||
84 | |||
85 | 75 | ||
86 | /* We implement an interface which resembles i2c_{add,del}_driver, | 76 | /* We implement an interface which resembles i2c_{add,del}_driver, |
87 | but for i2c-isa drivers. We don't have to remember and handle lists | 77 | but for i2c-isa drivers. We don't have to remember and handle lists |
@@ -93,8 +83,6 @@ int i2c_isa_add_driver(struct i2c_driver *driver) | |||
93 | 83 | ||
94 | /* Add the driver to the list of i2c drivers in the driver core */ | 84 | /* Add the driver to the list of i2c drivers in the driver core */ |
95 | driver->driver.bus = &i2c_bus_type; | 85 | driver->driver.bus = &i2c_bus_type; |
96 | driver->driver.probe = i2c_isa_device_probe; | ||
97 | driver->driver.remove = i2c_isa_device_remove; | ||
98 | res = driver_register(&driver->driver); | 86 | res = driver_register(&driver->driver); |
99 | if (res) | 87 | if (res) |
100 | return res; | 88 | return res; |