diff options
author | Naveen Krishna Chatradhi <ch.naveen@samsung.com> | 2014-06-26 14:50:14 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-06-30 08:56:14 +0200 |
commit | 93a88ef305ae928d9b1548d6c96734ae87843d02 (patch) | |
tree | bd717d6d66fe4ee353a068703cc4c42ea5d7acd4 /drivers/hwmon/ntc_thermistor.c | |
parent | Linux 3.16-rc3 (diff) | |
download | linux-93a88ef305ae928d9b1548d6c96734ae87843d02.tar.xz linux-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.c | 2 |
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: |