Commit fa0c9cb1 authored by Andy Shevchenko's avatar Andy Shevchenko

platform/x86: intel_cht_int33fe: Convert to use set_secondary_fwnode()

In one place we open coded set_secondary_fwnode().
Let's replace it with a helper.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Tested-by: default avatarHans de Goede <hdegoede@redhat.com>
Reviewed-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
parent 140355e5
...@@ -239,8 +239,7 @@ cht_int33fe_register_max17047(struct device *dev, struct cht_int33fe_data *data) ...@@ -239,8 +239,7 @@ cht_int33fe_register_max17047(struct device *dev, struct cht_int33fe_data *data)
i2c_for_each_dev(&max17047, cht_int33fe_check_for_max17047); i2c_for_each_dev(&max17047, cht_int33fe_check_for_max17047);
if (max17047) { if (max17047) {
/* Pre-existing i2c-client for the max17047, add device-props */ /* Pre-existing i2c-client for the max17047, add device-props */
fwnode->secondary = ERR_PTR(-ENODEV); set_secondary_fwnode(&max17047->dev, fwnode);
max17047->dev.fwnode->secondary = fwnode;
/* And re-probe to get the new device-props applied. */ /* And re-probe to get the new device-props applied. */
ret = device_reprobe(&max17047->dev); ret = device_reprobe(&max17047->dev);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment