浏览代码

Input: qt1070 - add MODULE_DEVICE_TABLE

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>
Axel Lin 14 年之前
父节点
当前提交
94bb530c24
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/input/keyboard/qt1070.c

+ 1 - 0
drivers/input/keyboard/qt1070.c

@@ -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	= {