[PATCH 1/3] gpio: mxc: Support module build

Linus Walleij linus.walleij at linaro.org
Sat Jul 11 17:17:44 EDT 2020


On Wed, Jul 8, 2020 at 1:28 AM Anson Huang <Anson.Huang at nxp.com> wrote:

>  subsys_initcall(gpio_mxc_init);
> +
> +MODULE_AUTHOR("Shawn Guo <shawn.guo at linaro.org>");
> +MODULE_DESCRIPTION("i.MX GPIO Driver");
> +MODULE_LICENSE("GPL");

You are making this modualrizable but keeping the subsys_initcall(),
which doesn't make very much sense. It is obviously not necessary
to do this probe at subsys_initcall() time, right?

Take this opportunity to convert the driver to use
module_platform_driver() as well.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list