Hi Finn,

I'll try that one - will require a new kernel though, and I can't
currently reach elgar by ssh...

Quite confident this is the right way to fix the issue.

Regarding zorro bus drivers - bus_register is called unconditionally
from a core initcall for the Zorro bus code. I suppose it's always
initialized even on ARAnyM. But Geert should know - AFAIR he tests all
his kernels using ARAnyM.

Cheers,

        Michael


Am 02.05.2018 um 16:24 schrieb Finn Thain:
> Please consider the patch below. The approach here is to always register 
> the bus type, regardless of platform.
> 
> An alternative approach would be to add another MACH_IS_MAC() test to 
> nubus_driver_register().
> 
> Arguably this patch should add a MACH_IS_MAC() test in nubus_proc_init().
> 
> BTW, does zorro_register_driver() cause the same failure? What happens if 
> you do 'modprobe zorro7xx' on Aranym?
> 
> diff --git a/drivers/nubus/nubus.c b/drivers/nubus/nubus.c
> index 4621ff98138c..5152dbdb0707 100644
> --- a/drivers/nubus/nubus.c
> +++ b/drivers/nubus/nubus.c
> @@ -861,6 +861,9 @@ static void __init nubus_scan_bus(void)
>  {
>       int slot;
>  
> +     if (!MACH_IS_MAC)
> +             return 0;
> +
>       pr_info("NuBus: Scanning NuBus slots.\n");
>       for (slot = 9; slot < 15; slot++) {
>               nubus_probe_slot(slot);
> @@ -871,9 +874,6 @@ static int __init nubus_init(void)
>  {
>       int err;
>  
> -     if (!MACH_IS_MAC)
> -             return 0;
> -
>       nubus_proc_init();
>       err = nubus_bus_register();
>       if (err)
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to