Use common code to get CHIP_SCU registers instead of driver one.

Signed-off-by: Mikhail Kshevetskiy <[email protected]>
---
 drivers/net/airoha/pcs-airoha-common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/airoha/pcs-airoha-common.c 
b/drivers/net/airoha/pcs-airoha-common.c
index 8784d92a7a4..16f0dac2951 100644
--- a/drivers/net/airoha/pcs-airoha-common.c
+++ b/drivers/net/airoha/pcs-airoha-common.c
@@ -10,7 +10,7 @@
 #include <net.h>
 #include <regmap.h>
 #include <reset.h>
-#include <syscon.h>
+#include <asm/arch/scu-regmap.h>
 
 #include "pcs-airoha.h"
 
@@ -755,7 +755,7 @@ static int airoha_pcs_probe(struct udevice *dev)
                return PTR_ERR(priv->xfi_ana);
 
        /* SCU is used to toggle XFI or HSGMII in global SoC registers */
-       priv->scu = syscon_regmap_lookup_by_phandle(dev, "airoha,scu");
+       priv->scu = airoha_get_scu_regmap();
        if (IS_ERR(priv->scu))
                return PTR_ERR(priv->scu);
 
-- 
2.51.0

Reply via email to