aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaveen Krishna Chatradhi <ch.naveen@samsung.com>2014-06-26 18:20:14 +0530
committerGuenter Roeck <linux@roeck-us.net>2014-06-29 23:56:14 -0700
commit93a88ef305ae928d9b1548d6c96734ae87843d02 (patch)
treebd717d6d66fe4ee353a068703cc4c42ea5d7acd4
parent4c834452aad01531db949414f94f817a86348d59 (diff)
downloadlinux-modsign-93a88ef305ae928d9b1548d6c96734ae87843d02.tar.gz
hwmon: (ntc_thermistor) Correct information printed during probe
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>
-rw-r--r--drivers/hwmon/ntc_thermistor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c
index bdfbe911488996..ae66f42c4d6d7c 100644
--- a/drivers/hwmon/ntc_thermistor.c
+++ b/drivers/hwmon/ntc_thermistor.c
@@ -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: