Skip to content

Commit

Permalink
staging/lirc_bt829: Return -ENODEV when no hardware is found.
Browse files Browse the repository at this point in the history
sys_init_module: 'lirc_bt829'->init suspiciously returned 1, it should follow 0/-E convention
sys_init_module: loading module anyway...
Pid: 8511, comm: modprobe Tainted: G        WC  3.0.0-rc6+ #73
Call Trace:
 [<ffffffff810b3da7>] sys_init_module+0x217/0x230
 [<ffffffff815ed1d2>] system_call_fastpath+0x16/0x1b

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Dave Jones authored and Greg Kroah-Hartman committed Jul 18, 2011
1 parent 950975a commit 66240a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/lirc/lirc_bt829.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ int init_module(void)

pdev = do_pci_probe();
if (pdev == NULL)
return 1;
return -ENODEV;

if (!atir_init_start())
return 1;
return -ENODEV;

strcpy(atir_driver.name, "ATIR");
atir_driver.minor = -1;
Expand Down

0 comments on commit 66240a6

Please sign in to comment.