Jamie Lentin eaa7cc60f7 hwmon: Only include of_match_table with CONFIG_OF_GPIO
The following fixes build errors on sparc. Without any DT support,
of_match_ptr is NULL and the below is a no-op. However, if just
CONFIG_OF is defined then so is of_match_ptr.

All useful parts of the gpio-fan DT support rely on CONFIG_OF_GPIO
anyway, so of_match_table should too.

Signed-off-by: Jamie Lentin <jm@lentin.co.uk>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2012-11-01 17:31:20 -07:00
..
2012-09-23 21:08:33 -07:00
2012-10-10 15:25:56 +02:00
2012-10-10 15:25:56 +02:00
2012-09-23 21:08:36 -07:00
2012-07-21 21:48:45 -07:00