thermal: int340x: fix sparse warning
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Thu, 5 Feb 2015 13:43:37 +0000 (13:43 +0000)
committerZhang Rui <rui.zhang@intel.com>
Fri, 6 Feb 2015 08:28:06 +0000 (16:28 +0800)
this patch fixes following sparse warning:

processor_thermal_device.c:188:6: warning: symbol 'proc_thermal_remove' was not declared. Should it be static?

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/int340x_thermal/processor_thermal_device.c

index 7c3848da2df00d41822b9dff6dda70037a97d4ee..5e8d8e91ea6d9d6056c714b16a3eafd9d09f835e 100644 (file)
@@ -274,7 +274,7 @@ free_buffer:
        return ret;
 }
 
-void proc_thermal_remove(struct proc_thermal_device *proc_priv)
+static void proc_thermal_remove(struct proc_thermal_device *proc_priv)
 {
        int340x_thermal_zone_remove(proc_priv->int340x_zone);
        sysfs_remove_group(&proc_priv->dev->kobj,