]> git.karo-electronics.de Git - linux-beck.git/commitdiff
asus-laptop: hide leds on Pegatron Lucid
authorCorentin Chary <corentin.chary@gmail.com>
Fri, 14 Oct 2011 09:13:39 +0000 (11:13 +0200)
committerMatthew Garrett <mjg@redhat.com>
Mon, 24 Oct 2011 14:52:41 +0000 (16:52 +0200)
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/asus-laptop.c

index 613762d825f9ffa71c5aee03ba05f3d80f6e6d5f..1fb8e699baf45d4efe3415609cf8d2decd870084 100644 (file)
@@ -628,6 +628,13 @@ static int asus_led_init(struct asus_laptop *asus)
 {
        int r;
 
+       /*
+        * The Pegatron Lucid has no physical leds, but all methods are
+        * available in the DSDT...
+        */
+       if (asus->is_pega_lucid)
+               return 0;
+
        /*
         * Functions that actually update the LED's are called from a
         * workqueue. By doing this as separate work rather than when the LED