Skip to content

Commit

Permalink
eeepc-wmi: respect wireless_hotplug setting
Browse files Browse the repository at this point in the history
Signed-off-by: Corentin Chary <[email protected]>
Signed-off-by: Matthew Garrett <[email protected]>
  • Loading branch information
iksaif authored and Matthew Garrett committed Mar 28, 2011
1 parent b718726 commit c14d4b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/platform/x86/eeepc-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,9 @@ static int eeepc_wmi_rfkill_init(struct eeepc_wmi *eeepc)
if (result && result != -ENODEV)
goto exit;

if (!eeepc->hotplug_wireless)
goto exit;

result = eeepc_setup_pci_hotplug(eeepc);
/*
* If we get -EBUSY then something else is handling the PCI hotplug -
Expand Down

0 comments on commit c14d4b8

Please sign in to comment.