staging/iio: (iio_hwmon) Basic devicetree support
authorGuenter Roeck <linux@roeck-us.net>
Thu, 31 Jan 2013 21:43:00 +0000 (21:43 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 2 Feb 2013 09:53:15 +0000 (09:53 +0000)
Add 'iio-hwmon' OF compatibility table entry to enable OF matches.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/iio_hwmon.c

index a9f3b64714f2d97ba5eb8985965c673cd1b611db..d4ef34fe0341fbda227f6a9b874dc0b82576e58c 100644 (file)
@@ -165,10 +165,16 @@ static int iio_hwmon_remove(struct platform_device *pdev)
        return 0;
 }
 
+static struct of_device_id iio_hwmon_of_match[] = {
+       { .compatible = "iio-hwmon", },
+       { }
+};
+
 static struct platform_driver __refdata iio_hwmon_driver = {
        .driver = {
                .name = "iio_hwmon",
                .owner = THIS_MODULE,
+               .of_match_table = iio_hwmon_of_match,
        },
        .probe = iio_hwmon_probe,
        .remove = iio_hwmon_remove,