OSDN Git Service

eeepc-laptop: fills rfkill->data with the right value
authorCorentin Chary <corentincj@iksaif.net>
Thu, 29 Oct 2009 21:26:04 +0000 (22:26 +0100)
committerCorentin Chary <corentin.chary@gmail.com>
Thu, 29 Oct 2009 21:29:43 +0000 (22:29 +0100)
Before this patch, all rfkill interface were controling the wlan device.
In fact, CM_ASL_WLAN = NULL = 0. :/

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
drivers/platform/x86/eeepc-laptop.c

index ab85ef4..7441770 100644 (file)
@@ -1088,6 +1088,7 @@ static struct rfkill *eeepc_rfkill_alloc(const char *name,
        rfkill->name = name;
        rfkill->toggle_radio = eeepc_rfkill_set;
        rfkill->get_state = eeepc_rfkill_state;
+       rfkill->data = (void *)(unsigned long)asl;
        if (get_acpi(asl) == 1) {
                rfkill->state = RFKILL_STATE_UNBLOCKED;
                rfkill_set_default(type, RFKILL_STATE_UNBLOCKED);