>From 3a2e047608a53caaefe8364eceb7e315ec413698 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Wed, 17 Apr 2019 22:54:47 +0200 Subject: [PATCH v2 1/3] FIXUP: "platform/x86: intel_cht_int33fe: Link with external dependencies using fwnodes" 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 --- 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