Re: [PATCH] init. mca_bus_type even if !MCA_bus

From: Andrew Morton
Date: Mon May 17 2004 - 17:56:20 EST


James Bottomley <James.Bottomley@xxxxxxxxxxxx> wrote:
>
> On Mon, 2004-05-17 at 17:14, Andrew Morton wrote:
> > Why is it appropriate to register the MCA bus type when there is no
> > MCA bus present?
>
> The legacy bus functions all have a bus_for_each_dev in them. This
> can't execute correctly unless the bus is registered. So either a check
> for MCA_bus has to be added to each of them, or we register the bus but
> attach no devices, so the loop exits without doing anything.
>

Fair enough. Let's run with Randy's patch and see what else explodes ;)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/