summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
diff options
context:
space:
mode:
authorAndy Shevchenko2017-09-27 20:24:59 +0200
committerMauro Carvalho Chehab2017-10-31 11:19:45 +0100
commite19c92059a700453a304061ff4291dfc2de2902b (patch)
tree92308a22206e76ddcf49c5d5ebafbc7c89f486f6 /drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
parentmedia: staging: atomisp: Use module_i2c_driver() macro (diff)
downloadkernel-qcow2-linux-e19c92059a700453a304061ff4291dfc2de2902b.tar.gz
kernel-qcow2-linux-e19c92059a700453a304061ff4291dfc2de2902b.tar.xz
kernel-qcow2-linux-e19c92059a700453a304061ff4291dfc2de2902b.zip
media: staging: atomisp: Switch i2c drivers to use ->probe_new()
Since most of the drivers are being used on ACPI enabled platforms there is no need to keep legacy API support for them. Thus, switch to ->probe_new() callback and remove orphaned code. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/staging/media/atomisp/i2c/atomisp-ov2722.c')
-rw-r--r--drivers/staging/media/atomisp/i2c/atomisp-ov2722.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c b/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
index c031cbe00693..ac827e302654 100644
--- a/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
+++ b/drivers/staging/media/atomisp/i2c/atomisp-ov2722.c
@@ -1276,8 +1276,7 @@ static int __ov2722_init_ctrl_handler(struct ov2722_device *dev)
return 0;
}
-static int ov2722_probe(struct i2c_client *client,
- const struct i2c_device_id *id)
+static int ov2722_probe(struct i2c_client *client)
{
struct ov2722_device *dev;
void *ovpdev;
@@ -1333,23 +1332,19 @@ out_free:
return ret;
}
-MODULE_DEVICE_TABLE(i2c, ov2722_id);
-
static const struct acpi_device_id ov2722_acpi_match[] = {
{ "INT33FB" },
{},
};
-
MODULE_DEVICE_TABLE(acpi, ov2722_acpi_match);
static struct i2c_driver ov2722_driver = {
.driver = {
- .name = OV2722_NAME,
- .acpi_match_table = ACPI_PTR(ov2722_acpi_match),
+ .name = "ov2722",
+ .acpi_match_table = ov2722_acpi_match,
},
- .probe = ov2722_probe,
+ .probe_new = ov2722_probe,
.remove = ov2722_remove,
- .id_table = ov2722_id,
};
module_i2c_driver(ov2722_driver);