From: Naveen Krishna Chatradhi Date: Thu, 26 Jun 2014 12:50:14 +0000 (+0530) Subject: hwmon: (ntc_thermistor) Correct information printed during probe X-Git-Tag: v4.9.8~6136^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93a88ef305ae928d9b1548d6c96734ae87843d02;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/ntc_thermistor.c b/drivers/hwmon/ntc_thermistor.c index bdfbe91..ae66f42 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: