提交 803d0abb 编写于 作者: B Bjorn Helgaas 提交者: Linus Torvalds

[PATCH] pnp: IRDA: adjust pnp_register_driver signature

Remove the assumption that pnp_register_driver() returns the number of devices
claimed.
Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Adam Belay <ambx1@neo.rr.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 8c59c4a2
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册