/* Some device drivers need know if pci is initiated. Basically, we think pci is not initiated when there is no device to be found on the pci_bus_type.  */
int no_pci_devices(void)
/* Some device drivers need know if pci is initiated. Basically, we think pci is not initiated when there is no device to be found on the pci_bus_type.  */
int no_pci_devices(void)
{
	struct device *dev;
	int no_devices;
	dev = bus_find_device(&pci_bus_type, NULL, NULL, find_anything);
	no_devices = (dev == NULL);
	put_device(dev);
	return no_devices;
}