[PATCH] ASoC: imx-audmux: Convert to subsys_platform_driver()
Daniel Baluta
daniel.baluta at oss.nxp.com
Wed Nov 4 04:19:50 PST 2026
On 11/4/26 13:32, Peng Fan (OSS) wrote:
> From: Peng Fan <peng.fan at nxp.com>
>
> Replace the open-coded subsys_initcall()/module_exit() platform driver
> registration with subsys_platform_driver().
>
> No functional change.
>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta at nxp.com>
sashiko comment doesn't seem to be correct. > ---
> sound/soc/fsl/imx-audmux.c | 13 +------------
> 1 file changed, 1 insertion(+), 12 deletions(-)
>
> diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c
> index f8335a04595a..d46f43ab66cf 100644
> --- a/sound/soc/fsl/imx-audmux.c
> +++ b/sound/soc/fsl/imx-audmux.c
> @@ -361,18 +361,7 @@ static struct platform_driver imx_audmux_driver = {
> .of_match_table = imx_audmux_dt_ids,
> }
> };
> -
> -static int __init imx_audmux_init(void)
> -{
> - return platform_driver_register(&imx_audmux_driver);
> -}
> -subsys_initcall(imx_audmux_init);
> -
> -static void __exit imx_audmux_exit(void)
> -{
> - platform_driver_unregister(&imx_audmux_driver);
> -}
> -module_exit(imx_audmux_exit);
> +subsys_platform_driver(imx_audmux_driver);
>
> MODULE_DESCRIPTION("Freescale i.MX AUDMUX driver");
> MODULE_AUTHOR("Sascha Hauer <s.hauer at pengutronix.de>");
More information about the linux-arm-kernel
mailing list