]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
pinctrl: imx: Drop .remove callback for SCU variant
authorMarek Vasut <marex@denx.de>
Fri, 24 Jan 2025 14:50:52 +0000 (15:50 +0100)
committerFabio Estevam <festevam@gmail.com>
Sat, 25 Jan 2025 12:06:32 +0000 (09:06 -0300)
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 <marex@denx.de>
drivers/pinctrl/nxp/pinctrl-imx.c
drivers/pinctrl/nxp/pinctrl-imx8.c

index 3f055321c731b92dbada3768d7dc8b40fa455e18..3443cf459db8b996e97e74a0a12e998cdd97569e 100644 (file)
@@ -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)
index 0afae31eb77b45e5ef578a16c09a121246855316..85e5e5f5237d32d3dfdf545e9deb658ae26ecbb0 100644 (file)
@@ -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,