From: Guenter Roeck Date: Thu, 31 Jan 2013 21:43:00 +0000 (+0000) Subject: staging/iio: (iio_hwmon) Basic devicetree support X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a11e619b80ff39d081e1a18d26b652e15069503e;p=openwrt%2Fstaging%2Fblogic.git staging/iio: (iio_hwmon) Basic devicetree support Add 'iio-hwmon' OF compatibility table entry to enable OF matches. Signed-off-by: Guenter Roeck Signed-off-by: Jonathan Cameron --- diff --git a/drivers/staging/iio/iio_hwmon.c b/drivers/staging/iio/iio_hwmon.c index a9f3b64714f2..d4ef34fe0341 100644 --- a/drivers/staging/iio/iio_hwmon.c +++ b/drivers/staging/iio/iio_hwmon.c @@ -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,