[PATCH] spi: Convert to subsys_platform_driver()

Andy Shevchenko andriy.shevchenko at linux.intel.com
Wed Nov 4 04:04:21 PST 2026


On Wed, Nov 04, 2026 at 07:34:05PM +0800, Peng Fan (OSS) wrote:

> Replace the open-coded subsys_initcall()/module_exit() platform driver
> registration with subsys_platform_driver().
> 
> The pxa2xx platform driver is renamed from "driver" to
> "pxa2xx_spi_driver" because subsys_platform_driver() generates
> "<name>_init", which would otherwise conflict with the core
> driver_init() declaration.
> 
> No functional change.

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

-- 
With Best Regards,
Andy Shevchenko





More information about the linux-arm-kernel mailing list