aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/platform/x86/eeepc-laptop.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/platform/x86/eeepc-laptop.c b/drivers/platform/x86/eeepc-laptop.c
index f5d8473ea66f..ec560f16d720 100644
--- a/drivers/platform/x86/eeepc-laptop.c
+++ b/drivers/platform/x86/eeepc-laptop.c
@@ -141,6 +141,7 @@ struct eeepc_hotk {
141 u16 *keycode_map; 141 u16 *keycode_map;
142 struct rfkill *wlan_rfkill; 142 struct rfkill *wlan_rfkill;
143 struct rfkill *bluetooth_rfkill; 143 struct rfkill *bluetooth_rfkill;
144 struct rfkill *wwan3g_rfkill;
144 struct hotplug_slot *hotplug_slot; 145 struct hotplug_slot *hotplug_slot;
145}; 146};
146 147
@@ -1023,6 +1024,8 @@ static void eeepc_rfkill_exit(void)
1023 rfkill_unregister(ehotk->wlan_rfkill); 1024 rfkill_unregister(ehotk->wlan_rfkill);
1024 if (ehotk->bluetooth_rfkill) 1025 if (ehotk->bluetooth_rfkill)
1025 rfkill_unregister(ehotk->bluetooth_rfkill); 1026 rfkill_unregister(ehotk->bluetooth_rfkill);
1027 if (ehotk->wwan3g_rfkill)
1028 rfkill_unregister(ehotk->wwan3g_rfkill);
1026 if (ehotk->hotplug_slot) 1029 if (ehotk->hotplug_slot)
1027 pci_hp_deregister(ehotk->hotplug_slot); 1030 pci_hp_deregister(ehotk->hotplug_slot);
1028} 1031}
@@ -1107,6 +1110,13 @@ static int eeepc_rfkill_init(struct device *dev)
1107 if (result && result != -ENODEV) 1110 if (result && result != -ENODEV)
1108 goto exit; 1111 goto exit;
1109 1112
1113 result = eeepc_new_rfkill(&ehotk->wwan3g_rfkill,
1114 "eeepc-wwan3g", dev,
1115 RFKILL_TYPE_WWAN, CM_ASL_3G);
1116
1117 if (result && result != -ENODEV)
1118 goto exit;
1119
1110 result = eeepc_setup_pci_hotplug(); 1120 result = eeepc_setup_pci_hotplug();
1111 /* 1121 /*
1112 * If we get -EBUSY then something else is handling the PCI hotplug - 1122 * If we get -EBUSY then something else is handling the PCI hotplug -