瀏覽代碼

hwmon: (ad7414) add MODULE_DEVICE_TABLE

The device table is required to load modules based on modaliases.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
axel lin 15 年之前
父節點
當前提交
6407deb594
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/hwmon/ad7414.c

+ 1 - 0
drivers/hwmon/ad7414.c

@@ -242,6 +242,7 @@ static const struct i2c_device_id ad7414_id[] = {
 	{ "ad7414", 0 },
 	{}
 };
+MODULE_DEVICE_TABLE(i2c, ad7414_id);
 
 static struct i2c_driver ad7414_driver = {
 	.driver = {