diff mbox series

[2/2] phy: meson-axg-mipi: Access parent ofnode through dev_ofnode()

Message ID 20210514205421.65093-2-alpernebiyasak@gmail.com
State Accepted, archived
Commit a3f1eaa793a1b25a113e2814451b5795954fbb17
Delegated to: Neil Armstrong
Headers show
Series [1/2] phy: meson-axg-mipi: Rename "priv_auto_alloc_size" to "priv_auto" | expand

Commit Message

Alper Nebi Yasak May 14, 2021, 8:54 p.m. UTC
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>
---

 drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass May 15, 2021, 3:19 p.m. UTC | #1
On Fri, 14 May 2021 at 14:54, Alper Nebi Yasak <alpernebiyasak@gmail.com> wrote:
>
> 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>
> ---
>
>  drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Simon Glass <sjg@chromium.org>
Neil Armstrong July 27, 2021, 8:34 a.m. UTC | #2
On 14/05/2021 22:54, Alper Nebi Yasak wrote:
> 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>
> ---
> 
>  drivers/phy/meson-axg-mipi-pcie-analog.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/phy/meson-axg-mipi-pcie-analog.c b/drivers/phy/meson-axg-mipi-pcie-analog.c
> index 7106c23d508f..236ea1ce5ca7 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);
>  
> 



Applied to u-boot-amlogic,

Thanks,
Neil
diff mbox series

Patch

diff --git a/drivers/phy/meson-axg-mipi-pcie-analog.c b/drivers/phy/meson-axg-mipi-pcie-analog.c
index 7106c23d508f..236ea1ce5ca7 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);