From: Guenter Roeck Date: Mon, 31 Dec 2012 08:04:59 +0000 (-0800) Subject: hwmon: (vexpress) Fix build error seen if CONFIG_OF_DEVICE is not set X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=08245ad87e2970ac56987caab5cd5900563db4e1;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git hwmon: (vexpress) Fix build error seen if CONFIG_OF_DEVICE is not set Fix: vexpress.c: In function ‘vexpress_hwmon_name_show’: vexpress.c:34:2: error: implicit declaration of function ‘of_get_property’ [-Werror=implicit-function-declaration] vexpress.c:34:27: warning: initialization makes pointer from integer without a cast [enabled by default] vexpress.c: In function ‘vexpress_hwmon_label_show’: vexpress.c:43:22: warning: initialization makes pointer from integer without a cast [enabled by default] Seen if CONFIG_OF_DEVICE is not defined. of_get_property is declared in of.h which is only included by of_device.h if CONFIG_OF_DEVICE is defined. of.h needs to be included directly. Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/vexpress.c b/drivers/hwmon/vexpress.c index 86d7f6d858b1..d867e6bb2be1 100644 --- a/drivers/hwmon/vexpress.c +++ b/drivers/hwmon/vexpress.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include