Skip to content

Commit

Permalink
hwmon: (ntc_thermistor) Correct information printed during probe
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Naveen Krishna Chatradhi authored and Guenter Roeck committed Jun 30, 2014
1 parent 4c83445 commit 93a88ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/ntc_thermistor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 93a88ef

Please sign in to comment.