diff options
author | Dave Jones <davej@redhat.com> | 2011-07-11 11:24:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-18 16:22:52 -0400 |
commit | 66240a6883744047700f9e2da977a7d4bab5eddc (patch) | |
tree | 5c456d7733845a408d9687b495e7f64504a8546d /drivers | |
parent | 950975a761d6c760d67f0df3af2e6e1fcfb33630 (diff) |
staging/lirc_bt829: Return -ENODEV when no hardware is found.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/lirc/lirc_bt829.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/lirc/lirc_bt829.c b/drivers/staging/lirc/lirc_bt829.c index 33881025426b..c5a0d27a02dc 100644 --- a/drivers/staging/lirc/lirc_bt829.c +++ b/drivers/staging/lirc/lirc_bt829.c | |||
@@ -122,10 +122,10 @@ int init_module(void) | |||
122 | 122 | ||
123 | pdev = do_pci_probe(); | 123 | pdev = do_pci_probe(); |
124 | if (pdev == NULL) | 124 | if (pdev == NULL) |
125 | return 1; | 125 | return -ENODEV; |
126 | 126 | ||
127 | if (!atir_init_start()) | 127 | if (!atir_init_start()) |
128 | return 1; | 128 | return -ENODEV; |
129 | 129 | ||
130 | strcpy(atir_driver.name, "ATIR"); | 130 | strcpy(atir_driver.name, "ATIR"); |
131 | atir_driver.minor = -1; | 131 | atir_driver.minor = -1; |