mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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 <[email protected]> Cc: Adam Belay <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8c59c4a221
commit
803d0abb3d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue