[PATCH v2] i2c: Convert to subsys_platform_driver()

Andy Shevchenko andriy.shevchenko at linux.intel.com
Mon Nov 30 04:09:48 PST 2026


On Mon, Nov 30, 2026 at 04:08:08PM +0800, Peng Fan wrote:
> 
> Replace the open-coded subsys_initcall()/module_exit() platform driver
> registration with subsys_platform_driver().
> 
> No functional change.

Reviewed-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>

...

>  };
> -

Not sure above removal of this blank line (since we have a comment),
but it's not a big deal either.

>  /* I2C may be needed to bring up other drivers */
> +subsys_platform_driver(davinci_i2c_driver);

...


> +++ b/drivers/i2c/busses/i2c-omap.c

> +++ b/drivers/i2c/busses/i2c-pnx.c

Ditto.

-- 
With Best Regards,
Andy Shevchenko





More information about the linux-arm-kernel mailing list