Revert "[as4610] Replace hwmon_device_register() with hwmon_device_register_with_info()"

This reverts commit 3f8142ccf4.
This commit is contained in:
brandon_chuang
2019-02-22 10:22:25 +08:00
parent 3f8142ccf4
commit 2fb688afc2
3 changed files with 3 additions and 6 deletions

View File

@@ -461,8 +461,7 @@ static int ym2651y_probe(struct i2c_client *client,
goto exit_free;
}
data->hwmon_dev = hwmon_device_register_with_info(&client->dev, "ym2651y",
NULL, NULL, NULL);
data->hwmon_dev = hwmon_device_register(&client->dev);
if (IS_ERR(data->hwmon_dev)) {
status = PTR_ERR(data->hwmon_dev);
goto exit_remove;

View File

@@ -262,8 +262,7 @@ static int as4610_fan_probe(struct platform_device *pdev)
}
fan_data->hwmon_dev = hwmon_device_register_with_info(&pdev->dev, "as4610_fan",
NULL, NULL, NULL);
fan_data->hwmon_dev = hwmon_device_register(&pdev->dev);
if (IS_ERR(fan_data->hwmon_dev)) {
status = PTR_ERR(fan_data->hwmon_dev);
goto exit_remove;

View File

@@ -135,8 +135,7 @@ static int as4610_psu_probe(struct i2c_client *client,
goto exit_free;
}
data->hwmon_dev = hwmon_device_register_with_info(&client->dev, "as4610_psu",
NULL, NULL, NULL);
data->hwmon_dev = hwmon_device_register(&client->dev);
if (IS_ERR(data->hwmon_dev)) {
status = PTR_ERR(data->hwmon_dev);
goto exit_remove;