patch-2.4.7 linux/include/linux/pci.h

Next file: linux/include/linux/prctl.h
Previous file: linux/include/linux/parport.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.6/linux/include/linux/pci.h linux/include/linux/pci.h
@@ -680,13 +680,16 @@
 #if defined(CONFIG_HOTPLUG) && !defined(MODULE)
 	if (rc == 0)
 		return 0;
+#else
+	if (rc == 0)
+		rc = -ENODEV;		
 #endif
 
 	/* if we get here, we need to clean up pci driver instance
 	 * and return some sort of error */
 	pci_unregister_driver (drv);
 	
-	return -ENODEV;
+	return rc;
 }
 
 #endif /* !CONFIG_PCI */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)