summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2013-06-10 19:47:45 +0400
committerGuenter Roeck <linux@roeck-us.net>2013-06-27 21:29:03 +0400
commit2ec2819623521c28de3ab5d6e1f096542d032246 (patch)
treec3aec0d8108814f6746eddb851a15b3de1ebaae6 /drivers/hwmon
parent68146a5712baeae2ba4885bd53d5d56bfd6024ba (diff)
downloadlinux-2ec2819623521c28de3ab5d6e1f096542d032246.tar.xz
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>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/iio_hwmon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/iio_hwmon.c b/drivers/hwmon/iio_hwmon.c
index 52b77afebde1..708081b68c6f 100644
--- a/drivers/hwmon/iio_hwmon.c
+++ b/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 = {