From: Bjorn Helgaas Date: Mon, 27 Mar 2006 09:17:06 +0000 (-0800) Subject: [PATCH] pnp: IRDA: adjust pnp_register_driver signature X-Git-Tag: v2.6.17-rc1~352 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=803d0abb3dcfc93701c8a8dc7f2968a47271214c;p=linux-2.6-omap-h63xx.git [PATCH] pnp: IRDA: adjust pnp_register_driver signature Remove the assumption that pnp_register_driver() returns the number of devices claimed. Signed-off-by: Bjorn Helgaas Cc: Adam Belay Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/irda/nsc-ircc.c b/drivers/net/irda/nsc-ircc.c index 83141a3ff54..9aa074b44dd 100644 --- a/drivers/net/irda/nsc-ircc.c +++ b/drivers/net/irda/nsc-ircc.c @@ -207,7 +207,7 @@ static int __init nsc_ircc_init(void) /* Register with PnP subsystem to detect disable ports */ ret = pnp_register_driver(&nsc_ircc_pnp_driver); - if (ret >= 0) + if (!ret) pnp_registered = 1; ret = -ENODEV;