Explorar o código

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>
Naveen Krishna Chatradhi %!s(int64=11) %!d(string=hai) anos
pai
achega
93a88ef305
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/hwmon/ntc_thermistor.c

+ 1 - 1
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",
 	dev_info(&pdev->dev, "Thermistor type: %s successfully probed.\n",
-								pdev->name);
+								pdev_id->name);
 
 
 	return 0;
 	return 0;
 err_after_sysfs:
 err_after_sysfs: