Browse Source

asus-laptop: hide leds on Pegatron Lucid

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Corentin Chary 13 years ago
parent
commit
8d38e42c61
1 changed files with 7 additions and 0 deletions
  1. 7 0
      drivers/platform/x86/asus-laptop.c

+ 7 - 0
drivers/platform/x86/asus-laptop.c

@@ -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