[PATCH v2 1/3] FIXUP: "platform/x86: intel_cht_int33fe: Link with external dependencies using fwnodes"

From: Hans de Goede
Date: Wed Apr 17 2019 - 16:54:47 EST


In the else path of: if (dev->fwnode) ... else ..., we should set
dev->fwnode to our own fwnode not to dev->fwnode, which is NULL as we
just tested.

Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
---
drivers/platform/x86/intel_cht_int33fe.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/intel_cht_int33fe.c b/drivers/platform/x86/intel_cht_int33fe.c
index e6a1ea7f33af..07bf92ece6cd 100644
--- a/drivers/platform/x86/intel_cht_int33fe.c
+++ b/drivers/platform/x86/intel_cht_int33fe.c
@@ -189,7 +189,7 @@ static int cht_int33fe_setup_mux(struct cht_int33fe_data *data)
data->node[INT33FE_NODE_ROLE_SWITCH] = dev->fwnode;
} else {
/* The node can be tied to the lifetime of the device. */
- dev->fwnode = fwnode_handle_get(dev->fwnode);
+ dev->fwnode = fwnode_handle_get(fwnode);
}

put_device(dev);
--
2.21.0


--------------D211A57CD2C7E9759BD27377
Content-Type: text/x-patch;
name="0002-FIXUP-device-connection-Find-connections-also-by-che.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0002-FIXUP-device-connection-Find-connections-also-by-che.pa";
filename*1="tch"