[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Kernel 2.4.2 Compilation Error



Hi,

I am trying to compile stock stable 2.4.2 kernel from ftp.kernel.org with 
on PPC, but ALWAYS got the following error message, no matter of settings.

pmac_pci.c line 550
PCI_DEVICE_ID_APPLE_KL_USB undeclared

I have enabled all USB, Input and other mac specific options and drivers, 
but nothing helps. BTW, the same configuration work with compilation of 
2.4.3 beta.


Thanks in advance for any suggestion.


PS. This is bogus function:

/* We don't want to enable USB controllers absent from the OF tree
 * (iBook second controller)
 */
int
pmac_pci_enable_device_hook(struct pci_dev *dev, int initial)
{
	if (dev->vendor == PCI_VENDOR_ID_APPLE
	    && dev->device == PCI_DEVICE_ID_APPLE_KL_USB) {
		struct device_node* node;
		node = pci_device_to_OF_node(dev);
		if (!node)
			return -EINVAL;
	}
	return 0;
}


Andrei



Reply to: