aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ntc_thermistor.c
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 /drivers/hwmon/ntc_thermistor.c
parentLinux 3.16-rc3 (diff)
downloadlinux-dev-93a88ef305ae928d9b1548d6c96734ae87843d02.tar.xz
linux-dev-93a88ef305ae928d9b1548d6c96734ae87843d02.zip
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>
Diffstat (limited to 'drivers/hwmon/ntc_thermistor.c')
-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 bdfbe9114889..ae66f42c4d6d 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: