diff options
author | Alper Nebi Yasak <alpernebiyasak@gmail.com> | 2021-05-14 23:54:20 +0300 |
---|---|---|
committer | Neil Armstrong <narmstrong@baylibre.com> | 2021-07-27 10:32:09 +0200 |
commit | a3f1eaa793a1b25a113e2814451b5795954fbb17 (patch) | |
tree | 82d0495063064cca5cc2b7b4b050f4e5a92227da | |
parent | a41862d25e10c2476ba8810222bf77b50bd17ec3 (diff) | |
download | u-boot-a3f1eaa793a1b25a113e2814451b5795954fbb17.zip u-boot-a3f1eaa793a1b25a113e2814451b5795954fbb17.tar.gz u-boot-a3f1eaa793a1b25a113e2814451b5795954fbb17.tar.bz2 |
phy: meson-axg-mipi: Access parent ofnode through dev_ofnode()
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>
-rw-r--r-- | drivers/phy/meson-axg-mipi-pcie-analog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/meson-axg-mipi-pcie-analog.c b/drivers/phy/meson-axg-mipi-pcie-analog.c index 7106c23..236ea1c 100644 --- a/drivers/phy/meson-axg-mipi-pcie-analog.c +++ b/drivers/phy/meson-axg-mipi-pcie-analog.c @@ -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); |