Replaces a call to deprecated function hwmon_device_register() -----

Signed-off-by: Chris Sorenson <[email protected]>

Changed to call hwmon_device_register_with_info() instead of
hwmon_device_register(), which is deprecated.

modified:   drivers/hwmon/w83627hf.c

diff --git a/drivers/hwmon/w83627hf.c b/drivers/hwmon/w83627hf.c
index 8ac89d0..fbc5d18 100644
--- a/drivers/hwmon/w83627hf.c
+++ b/drivers/hwmon/w83627hf.c
@@ -1569,7 +1569,8 @@ static int w83627hf_probe(struct platform_device
*pdev)
                        goto error;
        }

-       data->hwmon_dev = hwmon_device_register(dev);
+       data->hwmon_dev =
+               hwmon_device_register_with_info(dev, NULL, NULL, NULL,
NULL);
        if (IS_ERR(data->hwmon_dev)) {
                err = PTR_ERR(data->hwmon_dev);
                goto error;


--
To unsubscribe from this list: send the line "unsubscribe linux-hwmon" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to