summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-ns2.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-05-10 13:01:46 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-10 15:06:44 -0700
commitb8cd742acfd78a4689148fb80cf74bc26e7f1f3c (patch)
tree9c447d733ca74ed22b8272db5cb9a40586ab04a7 /drivers/leds/leds-ns2.c
parent8c7577637ca31385e92769a77e2ab5b428e8b99c (diff)
downloadlinux-3.10-b8cd742acfd78a4689148fb80cf74bc26e7f1f3c.tar.gz
linux-3.10-b8cd742acfd78a4689148fb80cf74bc26e7f1f3c.tar.bz2
linux-3.10-b8cd742acfd78a4689148fb80cf74bc26e7f1f3c.zip
drivers/leds: correct __devexit annotations
__devexit functions are discarded without CONFIG_HOTPLUG, so they need to be referenced carefully. A __devexit function may also not be called from a __devinit function. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> Cc: Bryan Wu <bryan.wu@canonical.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/leds/leds-ns2.c')
-rw-r--r--drivers/leds/leds-ns2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-ns2.c b/drivers/leds/leds-ns2.c
index 2f0a14421a7..01cf89ec694 100644
--- a/drivers/leds/leds-ns2.c
+++ b/drivers/leds/leds-ns2.c
@@ -255,7 +255,7 @@ err_free_cmd:
return ret;
}
-static void __devexit delete_ns2_led(struct ns2_led_data *led_dat)
+static void delete_ns2_led(struct ns2_led_data *led_dat)
{
device_remove_file(led_dat->cdev.dev, &dev_attr_sata);
led_classdev_unregister(&led_dat->cdev);