thermal: sprd: remove build warnings
[profile/mobile/platform/kernel/linux-3.10-sc7730.git] / drivers / thermal / sprd_board_thm.c
index c340e3a..84481c2 100644 (file)
@@ -551,14 +551,14 @@ static int sprd_thermal_probe(struct platform_device *pdev)
        struct sprd_board_sensor_config *pconfig = NULL;
        int ret = 0;
        int temp_inteval;       
+#ifdef CONFIG_OF
+       struct device_node *np = pdev->dev.of_node;
+#endif
+
        pconfig = devm_kzalloc(&pdev->dev,
                             sizeof(struct sprd_board_sensor_config),
                             GFP_KERNEL);
        printk("sprd_thermal_probe---------start\n");
-               
-#ifdef CONFIG_OF
-       struct device_node *np = pdev->dev.of_node;
-#endif
 
 #ifdef CONFIG_OF
        if (!np) {