Skip to content

Commit

Permalink
[PATCH] pnp: IRDA: adjust pnp_register_driver signature
Browse files Browse the repository at this point in the history
Remove the assumption that pnp_register_driver() returns the number of devices
claimed.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Adam Belay <ambx1@neo.rr.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Bjorn Helgaas authored and Linus Torvalds committed Mar 27, 2006
1 parent 8c59c4a commit 803d0ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/irda/nsc-ircc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 803d0ab

Please sign in to comment.