ideapad-laptop: Blacklist rfkill control on the Lenovo Yoga 2 11
authorHans de Goede <hdegoede@redhat.com>
Tue, 13 May 2014 14:00:28 +0000 (16:00 +0200)
committerMatthew Garrett <matthew.garrett@nebula.com>
Tue, 10 Jun 2014 23:11:06 +0000 (19:11 -0400)
commit85093f79f586176f8bbf90e56e22a3dfa526e334
tree0f260540279688d635ab018c4e4fbce431da59ed
parentc08db55fe1455202e4bcda416e88bbbc20700dc4
ideapad-laptop: Blacklist rfkill control on the Lenovo Yoga 2 11

The Lenovo Yoga 2 11 always reports everything as blocked, causing userspace
to not even try to use the wlan / bluetooth even though they work fine.

Note this patch also removes the "else priv->rfk[i] = NULL;" bit of the
rfkill initialization, it is not necessary as the priv struct is allocated
with kzalloc.

Reported-and-tested-by: Vincent Gerris <vgerris@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/ideapad-laptop.c