[PATCH] pci: fix no_pci_devices() #2

From: Vegard Nossum
Date: Sat Dec 20 2008 - 06:12:49 EST


On Sat, Dec 20, 2008 at 11:56 AM, Vegard Nossum <vegard.nossum@xxxxxxxxx> wrote:
> On Sat, Dec 20, 2008 at 9:58 AM, Greg KH <gregkh@xxxxxxx> wrote:
>> Care to make a patch for no_pci_devices() to work properly in this kind
>> of situation?
>
> How does this look?
>
> I have introduced a variable pci_is_initiated, which is set after the bus
> has been registered.

This patch is simpler and also works for me. But I am not too fond of it
either...


Vegard