[PATCH] w83627hf.c removed deprecated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Chris Sorenson <csoren@xxxxxxx>

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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux