* Jarkko Nikula <[EMAIL PROTECTED]> [080821 01:21]:
> SPI driver will do unhandled fault on OMAP2420 if trying to probe
> non-existing SPI busses. Register those additional busses runtime only
> for cpus having them.

Pushing today.

Tony

> Signed-off-by: Jarkko Nikula <[EMAIL PROTECTED]>
> ---
>  arch/arm/mach-omap2/devices.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
> index cc5c294..bd49a0f 100644
> --- a/arch/arm/mach-omap2/devices.c
> +++ b/arch/arm/mach-omap2/devices.c
> @@ -255,10 +255,12 @@ static void omap_init_mcspi(void)
>       platform_device_register(&omap2_mcspi1);
>       platform_device_register(&omap2_mcspi2);
>  #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP3)
> -     platform_device_register(&omap2_mcspi3);
> +     if (cpu_is_omap2430() || cpu_is_omap343x())
> +             platform_device_register(&omap2_mcspi3);
>  #endif
>  #ifdef CONFIG_ARCH_OMAP3
> -     platform_device_register(&omap2_mcspi4);
> +     if (cpu_is_omap343x())
> +             platform_device_register(&omap2_mcspi4);
>  #endif
>  }
>  
> -- 
> 1.5.6.3
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to