@@ -408,13 +408,13 @@ static struct clk_hw_onecell_data *clk_hw_data;
static int imx8mp_clocks_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
- struct device_node *np;
+ struct device_node *np, *anatop_np;
void __iomem *anatop_base, *ccm_base;
int err;
- np = of_find_compatible_node(NULL, NULL, "fsl,imx8mp-anatop");
- anatop_base = devm_of_iomap(dev, np, 0, NULL);
- of_node_put(np);
+ anatop_np = of_find_compatible_node(NULL, NULL, "fsl,imx8mp-anatop");
+ anatop_base = devm_of_iomap(dev, anatop_np, 0, NULL);
+ of_node_put(anatop_np);
if (WARN_ON(IS_ERR(anatop_base)))
return PTR_ERR(anatop_base);
Setting the "clk" (clock-controller@30380000) device node caused the reference to the "anatop" (clock-controller@30360000) device node to be lost. This patch, similar to what was already done for the base address, now distinguishes between the "anatop" device node and the "clk" device node. This change is preparatory for future developments. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- drivers/clk/imx/clk-imx8mp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)