Re: [PATCH 2/5] spi: i.MX: Move to coredevice_initcall

Alexander Shiyan shc_work at mail.ru
Sun May 11 11:49:26 PDT 2014


Thu,  8 May 2014 09:31:36 +0200 от Sascha Hauer <s.hauer at pengutronix.de>:
> SPI is often used by other devices, so make sure it's initialized
> early.
> 
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
> ---
>  drivers/spi/imx_spi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/spi/imx_spi.c b/drivers/spi/imx_spi.c
> index e07cf1a..3146339 100644
> --- a/drivers/spi/imx_spi.c
> +++ b/drivers/spi/imx_spi.c
> @@ -586,4 +586,4 @@ static struct driver_d imx_spi_driver = {
>  	.of_compatible = DRV_OF_COMPAT(imx_spi_dt_ids),
>  	.id_table = imx_spi_ids,
>  };
> -device_platform_driver(imx_spi_driver);
> +coredevice_platform_driver(imx_spi_driver);
> -- 

Maybe we should put all drivers in a single runlevel and implement
handle of EPROBE_DEFER?

---



More information about the barebox mailing list