aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/bcm2048/radio-bcm2048.c
diff options
context:
space:
mode:
authorAndrey Abramov <st5pub@yandex.ru>2018-10-01 06:15:31 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-05 05:16:26 -0500
commitb1b71c877a16b35f43c1f9de74ffc58c9188c569 (patch)
tree5cc49d9a6e65731b7ee9393dc041e503fe622f7a /drivers/staging/media/bcm2048/radio-bcm2048.c
parentmedia: ddbridge: remove another duplicate of io.h and sort includes (diff)
downloadlinux-dev-b1b71c877a16b35f43c1f9de74ffc58c9188c569.tar.xz
linux-dev-b1b71c877a16b35f43c1f9de74ffc58c9188c569.zip
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: Andrey Abramov <st5pub@yandex.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to '')
-rw-r--r--drivers/staging/media/bcm2048/radio-bcm2048.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/media/bcm2048/radio-bcm2048.c b/drivers/staging/media/bcm2048/radio-bcm2048.c
index 874d290f9622..debd1122875d 100644
--- a/drivers/staging/media/bcm2048/radio-bcm2048.c
+++ b/drivers/staging/media/bcm2048/radio-bcm2048.c
@@ -2574,8 +2574,7 @@ static const struct video_device bcm2048_viddev_template = {
/*
* I2C driver interface
*/
-static int bcm2048_i2c_driver_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int bcm2048_i2c_driver_probe(struct i2c_client *client)
{
struct bcm2048_device *bdev;
int err;
@@ -2679,7 +2678,7 @@ static struct i2c_driver bcm2048_i2c_driver = {
.driver = {
.name = BCM2048_DRIVER_NAME,
},
- .probe = bcm2048_i2c_driver_probe,
+ .probe_new = bcm2048_i2c_driver_probe,
.remove = bcm2048_i2c_driver_remove,
.id_table = bcm2048_id,
};