Input: qt1070 - add MODULE_DEVICE_TABLE
authorAxel Lin <axel.lin@gmail.com>
Thu, 28 Apr 2011 04:39:20 +0000 (21:39 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 28 Apr 2011 06:11:13 +0000 (23:11 -0700)
Adding the necessary MODULE_DEVICE_TABLE() information allows the
driver to be automatically loaded by udev

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/qt1070.c

index fba8404c7297536d80fcbc2a3efac6129f996ace..ca7b89196ab79a4ceee7b05ebe2ce65044c055b3 100644 (file)
@@ -248,6 +248,7 @@ static const struct i2c_device_id qt1070_id[] = {
        { "qt1070", 0 },
        { },
 };
+MODULE_DEVICE_TABLE(i2c, qt1070_id);
 
 static struct i2c_driver qt1070_driver = {
        .driver = {