diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-01-31 16:43:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-02-02 04:53:15 -0500 |
commit | a11e619b80ff39d081e1a18d26b652e15069503e (patch) | |
tree | 4609ac71426864869a228cc340f4f81f2e2810e9 | |
parent | 1daed9becdd4c9a3f75a84ebdb4d05b4dade8512 (diff) |
staging/iio: (iio_hwmon) Basic devicetree support
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>
-rw-r--r-- | drivers/staging/iio/iio_hwmon.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) | |||
165 | return 0; | 165 | return 0; |
166 | } | 166 | } |
167 | 167 | ||
168 | static struct of_device_id iio_hwmon_of_match[] = { | ||
169 | { .compatible = "iio-hwmon", }, | ||
170 | { } | ||
171 | }; | ||
172 | |||
168 | static struct platform_driver __refdata iio_hwmon_driver = { | 173 | static struct platform_driver __refdata iio_hwmon_driver = { |
169 | .driver = { | 174 | .driver = { |
170 | .name = "iio_hwmon", | 175 | .name = "iio_hwmon", |
171 | .owner = THIS_MODULE, | 176 | .owner = THIS_MODULE, |
177 | .of_match_table = iio_hwmon_of_match, | ||
172 | }, | 178 | }, |
173 | .probe = iio_hwmon_probe, | 179 | .probe = iio_hwmon_probe, |
174 | .remove = iio_hwmon_remove, | 180 | .remove = iio_hwmon_remove, |