]> git.karo-electronics.de Git - karo-tx-linux.git/commit
acer-wmi: check wireless capability flag before register rfkill
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Thu, 18 Aug 2011 10:47:33 +0000 (18:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Mar 2012 15:57:45 +0000 (08:57 -0700)
commit2b033b873b428b01d8508ba9f0c56b9246ab31b4
tree1248ed8009c746236a820a0294ac555ce0bd3580
parentbbc1505482e5bb16fa956e23f22dae6cd25172e6
acer-wmi: check wireless capability flag before register rfkill

commit 1709adab0773616da7a8190f2762e599afb0a295 upstream.

There will be better to check the wireless capability flag
(ACER_CAP_WIRELESS) before register wireless rfkill because maybe
the machine doesn't have wifi module or the module removed by user.

Tested on Acer Travelmate 8572
Tested on Acer Aspire 4739Z

Tested-by: AceLan Kao <acelan.kao@canonical.com>
Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Corentin Chary <corentincj@iksaif.net>
Cc: Thomas Renninger <trenn@suse.de>
Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/x86/acer-wmi.c