]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hwmon/iio_hwmon: add alias table
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 10 Jun 2013 15:47:45 +0000 (17:47 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 16 Jun 2013 14:53:01 +0000 (07:53 -0700)
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>
drivers/hwmon/iio_hwmon.c

index 52b77afebde120a17ce75bf6401103cad556d021..708081b68c6fc7007ec0524d8d0ee5745d0419f9 100644 (file)
@@ -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 = {