[ERD][RAMEN9610-13615] [COMMON] hwmon: ntc_thermistor: Use pdev->name for register
authorHyeonseong Gil <hs.gil@samsung.com>
Wed, 5 Sep 2018 04:00:32 +0000 (13:00 +0900)
committerhskang <hs1218.kang@samsung.com>
Mon, 25 Mar 2019 01:06:25 +0000 (10:06 +0900)
Change-Id: Idf68d4be62a666bbd75ab83a6392ee1e5af3b8e8
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
drivers/hwmon/ntc_thermistor.c

index c52d07c6b49f9b539e17143275add565ad45e4b7..df7449508b205a358f847a80dfbb5d01368e7ad3 100644 (file)
@@ -633,7 +633,7 @@ static int ntc_thermistor_probe(struct platform_device *pdev)
                return -EINVAL;
        }
 
-       hwmon_dev = devm_hwmon_device_register_with_groups(dev, pdev_id->name,
+       hwmon_dev = devm_hwmon_device_register_with_groups(dev, pdev->name,
                                                           data, ntc_groups);
        if (IS_ERR(hwmon_dev)) {
                dev_err(dev, "unable to register as hwmon device.\n");