mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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>
This commit is contained in:
parent
c277b60a08
commit
527aebf29c
@ -229,7 +229,7 @@ static const struct v4l2_subdev_ops adv7180_ops = {
|
|||||||
* concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1'
|
* concerning the addresses: i2c wants 7 bit (without the r/w bit), so '>>1'
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int adv7180_probe(struct i2c_client *client,
|
static __devinit int adv7180_probe(struct i2c_client *client,
|
||||||
const struct i2c_device_id *id)
|
const struct i2c_device_id *id)
|
||||||
{
|
{
|
||||||
struct adv7180_state *state;
|
struct adv7180_state *state;
|
||||||
@ -267,7 +267,7 @@ static int adv7180_probe(struct i2c_client *client,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int adv7180_remove(struct i2c_client *client)
|
static __devexit int adv7180_remove(struct i2c_client *client)
|
||||||
{
|
{
|
||||||
struct v4l2_subdev *sd = i2c_get_clientdata(client);
|
struct v4l2_subdev *sd = i2c_get_clientdata(client);
|
||||||
|
|
||||||
@ -289,7 +289,7 @@ static struct i2c_driver adv7180_driver = {
|
|||||||
.name = DRIVER_NAME,
|
.name = DRIVER_NAME,
|
||||||
},
|
},
|
||||||
.probe = adv7180_probe,
|
.probe = adv7180_probe,
|
||||||
.remove = adv7180_remove,
|
.remove = __devexit_p(adv7180_remove),
|
||||||
.id_table = adv7180_id,
|
.id_table = adv7180_id,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user