Re: [PATCH] clk: imx8mp: register driver at arch_initcall time

From: Fabio Estevam
Date: Mon Nov 21 2022 - 05:59:55 EST


On Mon, Nov 21, 2022 at 6:44 AM Rasmus Villemoes
<linux@xxxxxxxxxxxxxxxxxx> wrote:

> That doesn't seem to be true. To test, I just built the imx8mq clk
> driver as a module, and I could certainly both load and unload that on
> my imx8mp platform. Sure, no "bind" attribute shows up in the
> /sys/bus/platform/drivers/imx8mq-ccm/ directory, which is exactly what
> one expects, but the module can be loaded just fine. And since it can be
> loaded, it should also have a proper __exit call for deregistering the
> driver on unload.

You are right. Sorry for the confusion.