Add i2c_device_id to tsl2563. Signed-off-by: Felipe Balbi <felipe.balbi@xxxxxxxxx> --- drivers/i2c/chips/tsl2563.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/chips/tsl2563.c b/drivers/i2c/chips/tsl2563.c index cf2e313..b39b65c 100644 --- a/drivers/i2c/chips/tsl2563.c +++ b/drivers/i2c/chips/tsl2563.c @@ -595,7 +595,8 @@ static void tsl2563_unregister_sysfs(struct i2c_client *client) /*--------------------------------------------------------------*/ static struct i2c_driver tsl2563_i2c_driver; -static int tsl2563_probe(struct i2c_client *client) +static int tsl2563_probe(struct i2c_client *client, + const struct i2c_device_id *device_id) { struct tsl2563_chip *chip; int err = 0; @@ -703,6 +704,12 @@ out: return ret; } +static const struct i2c_device_id tsl2563_id[] = { + { DRIVER_NAME, 0 }, + { }, +}; +MODULE_DEVICE_TABLE(i2c, tsl2563_id); + static struct i2c_driver tsl2563_i2c_driver = { .driver = { .name = DRIVER_NAME, -- 1.5.5.1.125.gc697a -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html