projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c59c4a
)
[PATCH] pnp: IRDA: adjust pnp_register_driver signature
author
Bjorn Helgaas
<bjorn.helgaas@hp.com>
Mon, 27 Mar 2006 09:17:06 +0000
(
01:17
-0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:53 +0000
(08:44 -0800)
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>
drivers/net/irda/nsc-ircc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/irda/nsc-ircc.c
b/drivers/net/irda/nsc-ircc.c
index 83141a3ff5463d8fadf7df0eb34955265dd1de2a..9aa074b44dd3df9f419e86e70ec137b5549c2fa9 100644
(file)
--- 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;