Pull events into release branch
[sfrench/cifs-2.6.git] / drivers / misc / asus-laptop.c
index f8ae58f016373d637148704e728f68e401cb2f74..7dce318df1bdb1751b061bbddc258ec4648743dc 100644 (file)
@@ -1072,7 +1072,8 @@ static void asus_backlight_exit(void)
 }
 
 #define  ASUS_LED_UNREGISTER(object)                           \
-       led_classdev_unregister(&object##_led)
+       if (object##_led.dev)                                   \
+               led_classdev_unregister(&object##_led)
 
 static void asus_led_exit(void)
 {