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 613762d..1fb8e69 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