Skip to contentSkip to conversation

eeepc-laptop: remove redundant rfkill_set_sw_state in resume handler

PATCH In review Alan Jenkins 1 participant 1 message Aug 2, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 5/8 eeepc-laptop: remove redundant rfkill_set_sw_state in resume handler

rfkill_set_sw_state() will already be called by eeepc_rfkill_hotplug().

---
 drivers/platform/x86/eeepc-laptop.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/platform/x86/eeepc-laptop.c +1 -2
index 298dac9..7f7573a 100644
@@ -835,8 +835,7 @@ static int eeepc_hotk_resume(struct acpi_device *device)
 		wlan = get_acpi(CM_ASL_WLAN);
 		set_acpi(CM_ASL_WLAN, wlan);
 
-		rfkill_set_sw_state(ehotk->wlan_rfkill, wlan != 1);
-
+		/* Refresh both rfkill state and pci hotplug */
 		eeepc_rfkill_hotplug();
 	}
 
Signature · 1 line
1.6.3.2