diff options
author | Richard Röjfors <richard.rojfors@mocean-labs.com> | 2009-09-22 05:07:34 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:40:42 -0500 |
commit | 527aebf29c64a56557f9b44d2852ccb99f91ac3e (patch) | |
tree | 51ab689d6770ca5e03cdbd4492c6c935537dc104 /drivers/media/video | |
parent | c277b60a08fe9e201656528b3f5cd35b554e24af (diff) |
V4L/DVB (13175): adv7180: Use __devinit and __devexit macros
This patch defines the probe and remove function as __devinit and __devexit.
Signed-off-by: Richard Röjfors <richard.rojfors@mocean-labs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/adv7180.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/adv7180.c b/drivers/media/video/adv7180.c index 8b199a86a3a..77eada64cf7 100644 --- a/drivers/media/video/adv7180.c +++ b/drivers/media/video/adv7180.c | |||
@@ -229,7 +229,7 @@ static const struct v4l2_subdev_ops adv7180_ops = { | |||
229 | * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1' | 229 | * concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1' |
230 | */ | 230 | */ |
231 | 231 | ||
232 | static int adv7180_probe(struct i2c_client *client, | 232 | static __devinit int adv7180_probe(struct i2c_client *client, |
233 | const struct i2c_device_id *id) | 233 | const struct i2c_device_id *id) |
234 | { | 234 | { |
235 | struct adv7180_state *state; | 235 | struct adv7180_state *state; |
@@ -267,7 +267,7 @@ static int adv7180_probe(struct i2c_client *client, | |||
267 | return 0; | 267 | return 0; |
268 | } | 268 | } |
269 | 269 | ||
270 | static int adv7180_remove(struct i2c_client *client) | 270 | static __devexit int adv7180_remove(struct i2c_client *client) |
271 | { | 271 | { |
272 | struct v4l2_subdev *sd = i2c_get_clientdata(client); | 272 | struct v4l2_subdev *sd = i2c_get_clientdata(client); |
273 | 273 | ||
@@ -289,7 +289,7 @@ static struct i2c_driver adv7180_driver = { | |||
289 | .name = DRIVER_NAME, | 289 | .name = DRIVER_NAME, |
290 | }, | 290 | }, |
291 | .probe = adv7180_probe, | 291 | .probe = adv7180_probe, |
292 | .remove = adv7180_remove, | 292 | .remove = __devexit_p(adv7180_remove), |
293 | .id_table = adv7180_id, | 293 | .id_table = adv7180_id, |
294 | }; | 294 | }; |
295 | 295 | ||