Commit b1b71c87 authored by Andrey Abramov's avatar Andrey Abramov Committed by Mauro Carvalho Chehab

media: Staging: media: replace deprecated probe method

Replaced i2c_driver::probe with i2c_driver::probe_new,
	because documentation says that probe method is "soon to be deprecated".
Signed-off-by: default avatarAndrey Abramov <st5pub@yandex.ru>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent b6973637
...@@ -2574,8 +2574,7 @@ static const struct video_device bcm2048_viddev_template = { ...@@ -2574,8 +2574,7 @@ static const struct video_device bcm2048_viddev_template = {
/* /*
* I2C driver interface * I2C driver interface
*/ */
static int bcm2048_i2c_driver_probe(struct i2c_client *client, static int bcm2048_i2c_driver_probe(struct i2c_client *client)
const struct i2c_device_id *id)
{ {
struct bcm2048_device *bdev; struct bcm2048_device *bdev;
int err; int err;
...@@ -2679,7 +2678,7 @@ static struct i2c_driver bcm2048_i2c_driver = { ...@@ -2679,7 +2678,7 @@ static struct i2c_driver bcm2048_i2c_driver = {
.driver = { .driver = {
.name = BCM2048_DRIVER_NAME, .name = BCM2048_DRIVER_NAME,
}, },
.probe = bcm2048_i2c_driver_probe, .probe_new = bcm2048_i2c_driver_probe,
.remove = bcm2048_i2c_driver_remove, .remove = bcm2048_i2c_driver_remove,
.id_table = bcm2048_id, .id_table = bcm2048_id,
}; };
......
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