|
@@ -478,12 +478,9 @@ void lp55xx_unregister_leds(struct lp55xx_led *led, struct lp55xx_chip *chip)
|
|
{
|
|
{
|
|
int i;
|
|
int i;
|
|
struct lp55xx_led *each;
|
|
struct lp55xx_led *each;
|
|
- struct kobject *kobj;
|
|
|
|
|
|
|
|
for (i = 0; i < chip->num_leds; i++) {
|
|
for (i = 0; i < chip->num_leds; i++) {
|
|
each = led + i;
|
|
each = led + i;
|
|
- kobj = &led->cdev.dev->kobj;
|
|
|
|
- sysfs_remove_group(kobj, &lp55xx_led_attr_group);
|
|
|
|
led_classdev_unregister(&each->cdev);
|
|
led_classdev_unregister(&each->cdev);
|
|
flush_work(&each->brightness_work);
|
|
flush_work(&each->brightness_work);
|
|
}
|
|
}
|