acer-wmi: check the existence of internal 3G device when set capability
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Sat, 21 May 2011 23:33:52 +0000 (07:33 +0800)
committerMatthew Garrett <mjg@redhat.com>
Fri, 27 May 2011 16:38:49 +0000 (12:38 -0400)
commita8d1a266eee5f8b822449fe19d1735189377ef47
tree8b968d1b8019d1e365a635539a0e02d15a23a1e0
parent5ddf9c5fa5a78036790ed72aaed3b84ee7dd4532
acer-wmi: check the existence of internal 3G device when set capability

That will be better to check the existence of internal 3G device when
we set threeg capability and generate killswitch for threeg. It can
avoid userland access 3G rfkill but the machine doesn't have internal
3G device.

Reference: bko#32862
https://bugzilla.kernel.org/show_bug.cgi?id=32862

Tested on Acer Aspire 8930G, Acer Travelmate 8572

Tested-by: Hector Martin <hector@marcansoft.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@novell.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/acer-wmi.c