In new style i2c client, i2c driver should have id_table to match its device id. Otherwise, the attachment of i2c driver would be failed.
Signed-off-by: Matt Hsu <[email protected]> --- drivers/leds/leds-lp5521.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/leds/leds-lp5521.c b/drivers/leds/leds-lp5521.c index 62d68fd..7bbf79a 100644 --- a/drivers/leds/leds-lp5521.c +++ b/drivers/leds/leds-lp5521.c @@ -582,12 +582,17 @@ static int lp5521_remove(struct i2c_client *client) } #endif +static struct i2c_device_id lp5521_id[] = { + {LP5521_DRIVER_NAME, }, +}; + static struct i2c_driver lp5521_driver = { .driver = { .name = LP5521_DRIVER_NAME, .suspend = lp5521_suspend, .resume = lp5521_resume, }, + .id_table = lp5521_id, .probe = lp5521_probe, .remove = __exit_p(lp5521_remove), }; -- 1.5.6.5
