summaryrefslogtreecommitdiff
path: root/drivers/reset
diff options
context:
space:
mode:
authorMikhail Kshevetskiy <[email protected]>2025-11-01 03:44:53 +0300
committerTom Rini <[email protected]>2025-11-07 16:00:59 -0600
commitf1cae1f63d9a483853fb28e9b74607d27a7ed2cc (patch)
treea2fe09478f9c122c80587c96ccda5c87542c0736 /drivers/reset
parentea9b7975378a1ab216a28d2851335a3db5c2d445 (diff)
reset: airoha: unify code using SCU regmap helper
This patch unify probing code using airoha SCU regmap helper, thus a common function can be used instead of an7581/an7583 specific ones. Signed-off-by: Mikhail Kshevetskiy <[email protected]>
Diffstat (limited to 'drivers/reset')
-rw-r--r--drivers/reset/reset-airoha.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/reset/reset-airoha.c b/drivers/reset/reset-airoha.c
index a618bf62b4d..58b868d9855 100644
--- a/drivers/reset/reset-airoha.c
+++ b/drivers/reset/reset-airoha.c
@@ -11,6 +11,7 @@
#include <linux/io.h>
#include <reset-uclass.h>
#include <regmap.h>
+#include <asm/arch/scu-regmap.h>
#include <dt-bindings/reset/airoha,en7581-reset.h>
@@ -153,11 +154,10 @@ static struct reset_ops airoha_reset_ops = {
static int airoha_reset_probe(struct udevice *dev)
{
struct airoha_reset_priv *priv = dev_get_priv(dev);
- int ret;
- ret = regmap_init_mem(dev_ofnode(dev), &priv->map);
- if (ret)
- return ret;
+ priv->map = airoha_get_scu_regmap();
+ if (IS_ERR(priv->map))
+ return PTR_ERR(priv->map);
priv->bank_ofs = en7581_rst_ofs;
priv->idx_map = en7581_rst_map;