]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
phy: meson-axg-mipi: Access parent ofnode through dev_ofnode()
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>
Fri, 14 May 2021 20:54:20 +0000 (23:54 +0300)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 27 Jul 2021 08:32:09 +0000 (10:32 +0200)
With commit 84a42ae36683 ("dm: core: Rename device node to indicate it
is private") and commit f10643cf8a4c ("dm: core: Access device ofnode
through functions") accesses to the "node" member were replaced with
dev_ofnode(). Also apply that replacement here.

Fixes: 4547551aa019 ("phy: Add Amlogic AXG MIPI PCIe Analog PHY driver")
Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/phy/meson-axg-mipi-pcie-analog.c

index 7106c23d508fbd09abca54a0084b043e34e14ef5..236ea1ce5ca7f172535c1b01d95b3df3c78946e7 100644 (file)
@@ -211,7 +211,7 @@ int meson_axg_mipi_pcie_analog_probe(struct udevice *dev)
 {
        struct phy_meson_axg_mipi_pcie_analog_priv *priv = dev_get_priv(dev);
 
-       priv->regmap = syscon_node_to_regmap(dev_get_parent(dev)->node);
+       priv->regmap = syscon_node_to_regmap(dev_ofnode(dev_get_parent(dev)));
        if (IS_ERR(priv->regmap))
                return PTR_ERR(priv->regmap);