hwmon: (ntc_thermistor) Correct information printed during probe
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>
Thu, 26 Jun 2014 12:50:14 +0000 (18:20 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 30 Jun 2014 06:56:14 +0000 (23:56 -0700)
Currently, dev_info() at the end of the probe says
"type:%s ". But, prints pdev->name.

This patch uses "pdev_id->name" which prints the thermistor type.

Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ntc_thermistor.c

index bdfbe911488996841ca74ad9c161ac47ac2075b7..ae66f42c4d6d7c8599f4008e318c4f3d5d5095d6 100644 (file)
@@ -512,7 +512,7 @@ static int ntc_thermistor_probe(struct platform_device *pdev)
        }
 
        dev_info(&pdev->dev, "Thermistor type: %s successfully probed.\n",
-                                                               pdev->name);
+                                                               pdev_id->name);
 
        return 0;
 err_after_sysfs: