Re: [PATCH] PnP Fixes for 2.6.0-test5

From: Adam Belay (ambx1_at_neo.rr.com)
Date: 09/21/03

  • Next message: John Madden: "DAC960: Bad Data Block Found"
    Date:	Sun, 21 Sep 2003 20:12:52 +0000
    To: linux-kernel@vger.kernel.org
    
    

    # --------------------------------------------
    # 03/09/21 ambx1@neo.rr.com 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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: John Madden: "DAC960: Bad Data Block Found"

    Relevant Pages

    • Re: [PATCH] smsc-ircc2: Add PnP support.
      ... you must have 2 io entries, 1 dma entry and an irq ... A laptop of the friend have wrong pnpbios entries... ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: PNP depends on ISA ? (2.6.2-rc2
      ... DMI information would also be useful for blacklisting ... It occurs right after pnpbios ... I attached the oops log and the dmi data (didn't know what is needed of ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: EISA ID for PnP modem and resource allocation
      ... >:It occured to me that we should probably check which resources the pnpbios is ... >:reporting. ... If you have a chance, could you please show me the output of this ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: PNP depends on ISA ? (2.6.2-rc2
      ... DMI information would also be useful for blacklisting ... It occurs right after pnpbios ... > pnpbios on a kernel compiled with so I can run it from the running ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.0-test9-mm4 (does not boot)
      ... but no decoded output. ... i'm going to try without pnpbios i think. ... 3000 Leuven (Belgium) ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)