From: Corentin Chary Date: Fri, 14 Oct 2011 09:13:39 +0000 (+0200) Subject: asus-laptop: hide leds on Pegatron Lucid X-Git-Url: http://git.mmlx.us/?a=commitdiff_plain;h=8d38e42c61c53ab63abbb15380b39df4eae8d44e;p=linux-edison.git asus-laptop: hide leds on Pegatron Lucid Signed-off-by: Corentin Chary Signed-off-by: Matthew Garrett --- diff --git a/drivers/platform/x86/asus-laptop.c b/drivers/platform/x86/asus-laptop.c index 613762d825f..1fb8e699baf 100644 --- a/drivers/platform/x86/asus-laptop.c +++ b/drivers/platform/x86/asus-laptop.c @@ -629,6 +629,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 * subsystem asks, we avoid messing with the Asus ACPI stuff during a