diff options
author | Guenter Roeck <guenter.roeck@ericsson.com> | 2010-10-24 12:16:59 -0400 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2010-10-24 12:16:59 -0400 |
commit | db79f2a1d259a9026241dd0f192c20d6264d5afa (patch) | |
tree | e29a2b12e6e41713c5cd3b038639bf1d9cdf0637 /drivers/i2c | |
parent | 5ce914a8965031a4de503235eb9e0d33ff294fa8 (diff) |
i2c/pca954x: Remove __devinit and __devexit from probe and remove functions
The underlying I2C adapter may or may not be present when this driver
gets initialized, and may disappear later, so there is no safe time at
which the probe and remove functions can be discarded.
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/muxes/pca954x.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c index 6f9accf3189d..54e1ce73534b 100644 --- a/drivers/i2c/muxes/pca954x.c +++ b/drivers/i2c/muxes/pca954x.c | |||
@@ -181,8 +181,8 @@ static int pca954x_deselect_mux(struct i2c_adapter *adap, | |||
181 | /* | 181 | /* |
182 | * I2C init/probing/exit functions | 182 | * I2C init/probing/exit functions |
183 | */ | 183 | */ |
184 | static int __devinit pca954x_probe(struct i2c_client *client, | 184 | static int pca954x_probe(struct i2c_client *client, |
185 | const struct i2c_device_id *id) | 185 | const struct i2c_device_id *id) |
186 | { | 186 | { |
187 | struct i2c_adapter *adap = to_i2c_adapter(client->dev.parent); | 187 | struct i2c_adapter *adap = to_i2c_adapter(client->dev.parent); |
188 | struct pca954x_platform_data *pdata = client->dev.platform_data; | 188 | struct pca954x_platform_data *pdata = client->dev.platform_data; |
@@ -255,7 +255,7 @@ err: | |||
255 | return ret; | 255 | return ret; |
256 | } | 256 | } |
257 | 257 | ||
258 | static int __devexit pca954x_remove(struct i2c_client *client) | 258 | static int pca954x_remove(struct i2c_client *client) |
259 | { | 259 | { |
260 | struct pca954x *data = i2c_get_clientdata(client); | 260 | struct pca954x *data = i2c_get_clientdata(client); |
261 | const struct chip_desc *chip = &chips[data->type]; | 261 | const struct chip_desc *chip = &chips[data->type]; |
@@ -279,7 +279,7 @@ static struct i2c_driver pca954x_driver = { | |||
279 | .owner = THIS_MODULE, | 279 | .owner = THIS_MODULE, |
280 | }, | 280 | }, |
281 | .probe = pca954x_probe, | 281 | .probe = pca954x_probe, |
282 | .remove = __devexit_p(pca954x_remove), | 282 | .remove = pca954x_remove, |
283 | .id_table = pca954x_id, | 283 | .id_table = pca954x_id, |
284 | }; | 284 | }; |
285 | 285 | ||