Thread (41 messages) 41 messages, 7 authors, 2022-07-02

Re: [PATCH v11 net-next 3/9] pinctrl: ocelot: allow pinctrl-ocelot to be loaded as a module

From: Andy Shevchenko <hidden>
Date: 2022-06-28 12:54:32
Also in: linux-arm-kernel, linux-devicetree, linux-gpio, lkml

On Tue, Jun 28, 2022 at 10:17 AM Colin Foster
[off-list ref] wrote:
Work is being done to allow external control of Ocelot chips. When pinctrl
drivers are used internally, it wouldn't make much sense to allow them to
be loaded as modules. In the case where the Ocelot chip is controlled
externally, this scenario becomes practical.
...
 builtin_platform_driver(ocelot_pinctrl_driver);
This contradicts the logic behind this change. Perhaps you need to
move to module_platform_driver(). (Yes, I think functionally it won't
be any changes if ->remove() is not needed, but for the sake of
logical correctness...)

-- 
With Best Regards,
Andy Shevchenko
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help