浏览代码

hwmon: (iio_hwmon) add alias table

This helps the kernel to find the right module once the device is
created.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Sebastian Andrzej Siewior 12 年之前
父节点
当前提交
2ec2819623
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/hwmon/iio_hwmon.c

+ 1 - 0
drivers/hwmon/iio_hwmon.c

@@ -180,6 +180,7 @@ static struct of_device_id iio_hwmon_of_match[] = {
 	{ .compatible = "iio-hwmon", },
 	{ }
 };
+MODULE_DEVICE_TABLE(of, iio_hwmon_of_match);
 
 static struct platform_driver __refdata iio_hwmon_driver = {
 	.driver = {