[PATCH DISCUSSION 6/8] i2c: omap: reset initcall level
Francesco Valla <[email protected]> Wed, 26 Nov 2025 23:54:34 +0100
| Newsgroups | org.kernel.vger.linux-embedded |
|---|---|
| Message-ID | <[email protected]> |
With the fw_devlink infrastracture in place, a custom initcall level is doing more harm than good, especially in arm64 platforms that use the (quite old) omap i2c driver but relies on firmware for power management and clock setup. Reset the initcall level to the default. Signed-off-by: Francesco Valla <[email protected]> --- drivers/i2c/busses/i2c-omap.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index d9f590f0c384340dd31308bdf9ed0cb1a1a2ba8b..081b472ec99a271521cbbbc21b8462c3a69d13cf 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -1625,20 +1625,7 @@ static struct platform_driver omap_i2c_driver = { .of_match_table = of_match_ptr(omap_i2c_of_match), }, }; - -/* I2C may be needed to bring up other drivers */ -static int __init -omap_i2c_init_driver(void) -{ - return platform_driver_register(&omap_i2c_driver); -} -subsys_initcall(omap_i2c_init_driver); - -static void __exit omap_i2c_exit_driver(void) -{ - platform_driver_unregister(&omap_i2c_driver); -} -module_exit(omap_i2c_exit_driver); +module_platform_driver(omap_i2c_driver); MODULE_AUTHOR("MontaVista Software, Inc. (and others)"); MODULE_DESCRIPTION("TI OMAP I2C bus adapter"); -- 2.52.0