From: Naveen Krishna Chatradhi Date: Fri, 20 Dec 2013 12:12:07 +0000 (+0530) Subject: thermal:samsung: fix compilation warning X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b688b5bf845eb1fc3be06073a7be3ba6b7933f52;p=openwrt%2Fstaging%2Fblogic.git thermal:samsung: fix compilation warning This patch fixes a compilation warning. warning: passing argument 5 of 'thermal_zone_device_register' discards 'const' qualifier from pointer target type [enabled by default] include/linux/thermal.h:270:29: note: expected 'struct thermal_zone_device_ops *' but argument is of type 'const struct thermal_zone_device_ops *' Signed-off-by: Naveen Krishna Chatradhi Signed-off-by: Zhang Rui --- diff --git a/drivers/thermal/samsung/exynos_thermal_common.c b/drivers/thermal/samsung/exynos_thermal_common.c index c2301da08ac7..3f5ad25ddca8 100644 --- a/drivers/thermal/samsung/exynos_thermal_common.c +++ b/drivers/thermal/samsung/exynos_thermal_common.c @@ -280,7 +280,7 @@ static int exynos_get_trend(struct thermal_zone_device *thermal, return 0; } /* Operation callback functions for thermal zone */ -static struct thermal_zone_device_ops const exynos_dev_ops = { +static struct thermal_zone_device_ops exynos_dev_ops = { .bind = exynos_bind, .unbind = exynos_unbind, .get_temp = exynos_get_temp,