Skip to content

Commit

Permalink
i2c/pca954x: Remove __devinit and __devexit from probe and remove fun…
Browse files Browse the repository at this point in the history
…ctions

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>
  • Loading branch information
Guenter Roeck authored and Jean Delvare committed Oct 24, 2010
1 parent 5ce914a commit db79f2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/i2c/muxes/pca954x.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ static int pca954x_deselect_mux(struct i2c_adapter *adap,
/*
* I2C init/probing/exit functions
*/
static int __devinit pca954x_probe(struct i2c_client *client,
const struct i2c_device_id *id)
static int pca954x_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
struct i2c_adapter *adap = to_i2c_adapter(client->dev.parent);
struct pca954x_platform_data *pdata = client->dev.platform_data;
Expand Down Expand Up @@ -255,7 +255,7 @@ static int __devinit pca954x_probe(struct i2c_client *client,
return ret;
}

static int __devexit pca954x_remove(struct i2c_client *client)
static int pca954x_remove(struct i2c_client *client)
{
struct pca954x *data = i2c_get_clientdata(client);
const struct chip_desc *chip = &chips[data->type];
Expand All @@ -279,7 +279,7 @@ static struct i2c_driver pca954x_driver = {
.owner = THIS_MODULE,
},
.probe = pca954x_probe,
.remove = __devexit_p(pca954x_remove),
.remove = pca954x_remove,
.id_table = pca954x_id,
};

Expand Down

0 comments on commit db79f2a

Please sign in to comment.