[PATCH 4.19 238/313] HID: lenovo: Add checks to fix of_led_classdev_register