[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1559687743-31879-3-git-send-email-hancock@sedsystems.ca>
Date: Tue, 4 Jun 2019 16:35:43 -0600
From: Robert Hancock <hancock@...systems.ca>
To: linux-kernel@...r.kernel.org
Cc: lee.jones@...aro.org, Robert Hancock <hancock@...systems.ca>
Subject: [PATCH 2/2] mfd: core: Set fwnode for created devices
The logic for setting the of_node on devices created by mfd did not set
the fwnode pointer to match, which caused fwnode-based APIs to
malfunction on these devices since the fwnode pointer was null. Fix
this.
Signed-off-by: Robert Hancock <hancock@...systems.ca>
---
drivers/mfd/mfd-core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c
index 74bc895..228163c 100644
--- a/drivers/mfd/mfd-core.c
+++ b/drivers/mfd/mfd-core.c
@@ -182,6 +182,7 @@ static int mfd_add_device(struct device *parent, int id,
!strcmp(cell->of_full_name,
of_node_full_name(np)))) {
pdev->dev.of_node = np;
+ pdev->dev.fwnode = &np->fwnode;
break;
}
}
--
1.8.3.1
Powered by blists - more mailing lists