Skip to content

Commit

Permalink
eeepc-laptop: remove redundant rfkill_set_sw_state in resume handler
Browse files Browse the repository at this point in the history
rfkill_set_sw_state() will already be called by eeepc_rfkill_hotplug().

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Alan Jenkins authored and Len Brown committed Aug 28, 2009
1 parent f2a9d5e commit ffb0357
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/platform/x86/eeepc-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit ffb0357

Please sign in to comment.