Commit c2668c08 authored by Sylwester Nawrocki's avatar Sylwester Nawrocki Committed by Mauro Carvalho Chehab

[media] s5c73m3: Remove __dev* attributes

Remove no longer supported __devinit, __devexit attributes.
Signed-off-by: default avatarSylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent ddf289f9
...@@ -1561,7 +1561,7 @@ static int s5c73m3_configure_gpios(struct s5c73m3 *state, ...@@ -1561,7 +1561,7 @@ static int s5c73m3_configure_gpios(struct s5c73m3 *state,
return 0; return 0;
} }
static int __devinit s5c73m3_probe(struct i2c_client *client, static int s5c73m3_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct device *dev = &client->dev; struct device *dev = &client->dev;
...@@ -1666,7 +1666,7 @@ static int __devinit s5c73m3_probe(struct i2c_client *client, ...@@ -1666,7 +1666,7 @@ static int __devinit s5c73m3_probe(struct i2c_client *client,
return ret; return ret;
} }
static int __devexit s5c73m3_remove(struct i2c_client *client) static int s5c73m3_remove(struct i2c_client *client)
{ {
struct v4l2_subdev *sd = i2c_get_clientdata(client); struct v4l2_subdev *sd = i2c_get_clientdata(client);
struct s5c73m3 *state = sensor_sd_to_s5c73m3(sd); struct s5c73m3 *state = sensor_sd_to_s5c73m3(sd);
...@@ -1693,7 +1693,7 @@ static struct i2c_driver s5c73m3_i2c_driver = { ...@@ -1693,7 +1693,7 @@ static struct i2c_driver s5c73m3_i2c_driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
}, },
.probe = s5c73m3_probe, .probe = s5c73m3_probe,
.remove = __devexit_p(s5c73m3_remove), .remove = s5c73m3_remove,
.id_table = s5c73m3_id, .id_table = s5c73m3_id,
}; };
......
...@@ -111,7 +111,7 @@ int s5c73m3_spi_read(struct s5c73m3 *state, void *addr, ...@@ -111,7 +111,7 @@ int s5c73m3_spi_read(struct s5c73m3 *state, void *addr,
return 0; return 0;
} }
static int __devinit s5c73m3_spi_probe(struct spi_device *spi) static int s5c73m3_spi_probe(struct spi_device *spi)
{ {
int r; int r;
struct s5c73m3 *state = container_of(spi->dev.driver, struct s5c73m3, struct s5c73m3 *state = container_of(spi->dev.driver, struct s5c73m3,
...@@ -132,7 +132,7 @@ static int __devinit s5c73m3_spi_probe(struct spi_device *spi) ...@@ -132,7 +132,7 @@ static int __devinit s5c73m3_spi_probe(struct spi_device *spi)
return 0; return 0;
} }
static int __devexit s5c73m3_spi_remove(struct spi_device *spi) static int s5c73m3_spi_remove(struct spi_device *spi)
{ {
return 0; return 0;
} }
...@@ -141,7 +141,7 @@ int s5c73m3_register_spi_driver(struct s5c73m3 *state) ...@@ -141,7 +141,7 @@ int s5c73m3_register_spi_driver(struct s5c73m3 *state)
{ {
struct spi_driver *spidrv = &state->spidrv; struct spi_driver *spidrv = &state->spidrv;
spidrv->remove = __devexit_p(s5c73m3_spi_remove); spidrv->remove = s5c73m3_spi_remove;
spidrv->probe = s5c73m3_spi_probe; spidrv->probe = s5c73m3_spi_probe;
spidrv->driver.name = S5C73M3_SPI_DRV_NAME; spidrv->driver.name = S5C73M3_SPI_DRV_NAME;
spidrv->driver.bus = &spi_bus_type; spidrv->driver.bus = &spi_bus_type;
......
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