diff options
| author | Mikhail Kshevetskiy <[email protected]> | 2025-11-01 03:44:49 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-11-07 16:00:58 -0600 |
| commit | f8cef0b7435b65b0a33b541c28081b357a76d4c3 (patch) | |
| tree | 92d835fbbed8dd0236e3f00af1dd438c1616ec19 /drivers/clk/airoha | |
| parent | 8e21740b68d06f71b4f9fb13b908a8828c5c7e2d (diff) | |
clk: airoha: use CHIP_SCU regmap helper
Use common helper to get CHIP_SCU registers.
Signed-off-by: Mikhail Kshevetskiy <[email protected]>
Diffstat (limited to 'drivers/clk/airoha')
| -rw-r--r-- | drivers/clk/airoha/clk-airoha.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/clk/airoha/clk-airoha.c b/drivers/clk/airoha/clk-airoha.c index 1b2c4c98de5..8e2f2c08923 100644 --- a/drivers/clk/airoha/clk-airoha.c +++ b/drivers/clk/airoha/clk-airoha.c @@ -16,7 +16,7 @@ #include <dm/device_compat.h> #include <dm/lists.h> #include <regmap.h> -#include <syscon.h> +#include <asm/arch/scu-regmap.h> #include <dt-bindings/clock/en7523-clk.h> @@ -400,14 +400,8 @@ const struct clk_ops airoha_clk_ops = { static int airoha_clk_probe(struct udevice *dev) { struct airoha_clk_priv *priv = dev_get_priv(dev); - ofnode chip_scu_node; - chip_scu_node = ofnode_by_compatible(ofnode_null(), - "airoha,en7581-chip-scu"); - if (!ofnode_valid(chip_scu_node)) - return -EINVAL; - - priv->chip_scu_map = syscon_node_to_regmap(chip_scu_node); + priv->chip_scu_map = airoha_get_chip_scu_regmap(); if (IS_ERR(priv->chip_scu_map)) return PTR_ERR(priv->chip_scu_map); |
