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) {