if (!r->start && r->end) {
if(pci_assign_resource(pdev, 0)) {
printk(KERN_ERR PFX "could not assign resource 0\n");
- return (-ENODEV);
+ return -ENODEV;
}
}
*/
if (pci_enable_device(pdev)) {
printk(KERN_ERR PFX "Unable to Enable PCI device\n");
- return (-ENODEV);
+ return -ENODEV;
}
/* Fill in the mode register */
{
static int agp_initialised=0;
+ if (agp_off)
+ return -EINVAL;
+
if (agp_initialised == 1)
return 0;
agp_initialised=1;