X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=drivers%2Fleds%2Fleds-hp-disk.c;h=d786adc8c5e3616ecb8131f2b1d58d68d19a30c8;hb=32aeef605aa01e1fee45e052eceffb00e72ba2b0;hp=44fa757d82547ff82b705a29ee5d54bf8a3b179a;hpb=f613984902b64cfb05599f9ba52c0af39cb4db6b;p=linux-2.6-omap-h63xx.git diff --git a/drivers/leds/leds-hp-disk.c b/drivers/leds/leds-hp-disk.c index 44fa757d825..d786adc8c5e 100644 --- a/drivers/leds/leds-hp-disk.c +++ b/drivers/leds/leds-hp-disk.c @@ -68,25 +68,9 @@ static struct led_classdev hpled_led = { .name = "hp:red:hddprotection", .default_trigger = "heartbeat", .brightness_set = hpled_set, + .flags = LED_CORE_SUSPENDRESUME, }; -#ifdef CONFIG_PM -static int hpled_suspend(struct acpi_device *dev, pm_message_t state) -{ - led_classdev_suspend(&hpled_led); - return 0; -} - -static int hpled_resume(struct acpi_device *dev) -{ - led_classdev_resume(&hpled_led); - return 0; -} -#else -#define hpled_suspend NULL -#define hpled_resume NULL -#endif - static int hpled_add(struct acpi_device *device) { int ret; @@ -121,8 +105,6 @@ static struct acpi_driver leds_hp_driver = { .ops = { .add = hpled_add, .remove = hpled_remove, - .suspend = hpled_suspend, - .resume = hpled_resume, } };