|
@@ -942,7 +942,7 @@ void __init pmac_pci_init(void)
|
|
}
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_PPC32
|
|
#ifdef CONFIG_PPC32
|
|
-int pmac_pci_enable_device_hook(struct pci_dev *dev)
|
|
|
|
|
|
+bool pmac_pci_enable_device_hook(struct pci_dev *dev)
|
|
{
|
|
{
|
|
struct device_node* node;
|
|
struct device_node* node;
|
|
int updatecfg = 0;
|
|
int updatecfg = 0;
|
|
@@ -958,11 +958,11 @@ int pmac_pci_enable_device_hook(struct pci_dev *dev)
|
|
&& !node) {
|
|
&& !node) {
|
|
printk(KERN_INFO "Apple USB OHCI %s disabled by firmware\n",
|
|
printk(KERN_INFO "Apple USB OHCI %s disabled by firmware\n",
|
|
pci_name(dev));
|
|
pci_name(dev));
|
|
- return -EINVAL;
|
|
|
|
|
|
+ return false;
|
|
}
|
|
}
|
|
|
|
|
|
if (!node)
|
|
if (!node)
|
|
- return 0;
|
|
|
|
|
|
+ return true;
|
|
|
|
|
|
uninorth_child = node->parent &&
|
|
uninorth_child = node->parent &&
|
|
of_device_is_compatible(node->parent, "uni-north");
|
|
of_device_is_compatible(node->parent, "uni-north");
|
|
@@ -1003,7 +1003,7 @@ int pmac_pci_enable_device_hook(struct pci_dev *dev)
|
|
L1_CACHE_BYTES >> 2);
|
|
L1_CACHE_BYTES >> 2);
|
|
}
|
|
}
|
|
|
|
|
|
- return 0;
|
|
|
|
|
|
+ return true;
|
|
}
|
|
}
|
|
|
|
|
|
void pmac_pci_fixup_ohci(struct pci_dev *dev)
|
|
void pmac_pci_fixup_ohci(struct pci_dev *dev)
|