Re: [PATCH] PnP Fixes for 2.6.0-test5

From: Adam Belay
Date: Sun Sep 21 2003 - 19:26:36 EST


# --------------------------------------------
# 03/09/21 ambx1@xxxxxxxxxx 1.1360
# [PNPBIOS] return proper error codes on init failure
# --------------------------------------------
#
diff -Nru a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c
--- a/drivers/pnp/pnpbios/core.c Sun Sep 21 19:45:42 2003
+++ b/drivers/pnp/pnpbios/core.c Sun Sep 21 19:45:42 2003
@@ -484,15 +484,17 @@
pnpbios_calls_init(pnp_bios_install);

/* read the node info */
- if (pnp_bios_dev_node_info(&node_info)) {
+ ret = pnp_bios_dev_node_info(&node_info);
+ if (ret) {
printk(KERN_ERR "PnPBIOS: Unable to get node info. Aborting.\n");
- return -EIO;
+ return ret;
}

/* register with the pnp layer */
- if (pnp_register_protocol(&pnpbios_protocol)) {
+ ret = pnp_register_protocol(&pnpbios_protocol);
+ if (ret) {
printk(KERN_ERR "PnPBIOS: Unable to register driver. Aborting.\n");
- return -EIO;
+ return ret;
}

/* start the proc interface */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/