The return callback for SCU variant of the pinctrl drivers does
nothing but returns 0. Remove the return callback from the SCU
driver itself, that has the same effect. No functional change.

Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Alice Guo <[email protected]>
Cc: Jesse Taube <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Tim Harvey <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
 drivers/pinctrl/nxp/pinctrl-imx.c  | 3 ---
 drivers/pinctrl/nxp/pinctrl-imx8.c | 1 -
 2 files changed, 4 deletions(-)

diff --git a/drivers/pinctrl/nxp/pinctrl-imx.c 
b/drivers/pinctrl/nxp/pinctrl-imx.c
index 3f055321c73..3443cf459db 100644
--- a/drivers/pinctrl/nxp/pinctrl-imx.c
+++ b/drivers/pinctrl/nxp/pinctrl-imx.c
@@ -256,9 +256,6 @@ int imx_pinctrl_remove(struct udevice *dev)
        struct imx_pinctrl_priv *priv = dev_get_priv(dev);
        struct imx_pinctrl_soc_info *info = priv->info;
 
-       if (info->flags & IMX8_USE_SCU)
-               return 0;
-
        if (info->input_sel_base)
                unmap_sysmem(info->input_sel_base);
        if (info->base)
diff --git a/drivers/pinctrl/nxp/pinctrl-imx8.c 
b/drivers/pinctrl/nxp/pinctrl-imx8.c
index 0afae31eb77..85e5e5f5237 100644
--- a/drivers/pinctrl/nxp/pinctrl-imx8.c
+++ b/drivers/pinctrl/nxp/pinctrl-imx8.c
@@ -38,7 +38,6 @@ U_BOOT_DRIVER(imx8_pinctrl) = {
        .id = UCLASS_PINCTRL,
        .of_match = of_match_ptr(imx8_pinctrl_match),
        .probe = imx8_pinctrl_probe,
-       .remove = imx_pinctrl_remove,
        .priv_auto      = sizeof(struct imx_pinctrl_priv),
        .ops = &imx8_pinctrl_ops,
        .flags = DM_FLAG_PRE_RELOC,
-- 
2.45.2

Reply via email to