staging/lirc_bt829: Return -ENODEV when no hardware is found.
commit66240a6883744047700f9e2da977a7d4bab5eddc
authorDave Jones <davej@redhat.com>
Mon, 11 Jul 2011 15:24:36 +0000 (11 11:24 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 Jul 2011 20:22:52 +0000 (18 13:22 -0700)
tree5c456d7733845a408d9687b495e7f64504a8546d
parent950975a761d6c760d67f0df3af2e6e1fcfb33630
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>
drivers/staging/lirc/lirc_bt829.c