summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-01-31 22:36:31 -0800
committerBryan Wu <cooloney@gmail.com>2014-02-27 09:56:55 -0800
commit2f18f8d638cc66a5339d901dea2c9d8af72e69c2 (patch)
treeff0321a6db9e695c3e2eb892867bf8af19063256 /drivers/leds
parent677d13f27e9735d3f2e8d7b8b54cbd820630638a (diff)
downloadop-kernel-dev-2f18f8d638cc66a5339d901dea2c9d8af72e69c2.zip
op-kernel-dev-2f18f8d638cc66a5339d901dea2c9d8af72e69c2.tar.gz
leds: leds-mc13783: Remove unnecessary cleaning of registers on exit
LED core switches each LED to OFF-state on exit, so there is no need for resetting registers. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-mc13783.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/leds/leds-mc13783.c b/drivers/leds/leds-mc13783.c
index b1686b4..15fa5e8 100644
--- a/drivers/leds/leds-mc13783.c
+++ b/drivers/leds/leds-mc13783.c
@@ -210,7 +210,6 @@ static int __init mc13xxx_led_probe(struct platform_device *pdev)
static int mc13xxx_led_remove(struct platform_device *pdev)
{
struct mc13xxx_leds *leds = platform_get_drvdata(pdev);
- struct mc13xxx *mcdev = leds->master;
int i;
for (i = 0; i < leds->num_leds; i++) {
@@ -218,9 +217,6 @@ static int mc13xxx_led_remove(struct platform_device *pdev)
cancel_work_sync(&leds->led[i].work);
}
- for (i = 0; i < leds->devtype->num_regs; i++)
- mc13xxx_reg_write(mcdev, leds->devtype->ledctrl_base + i, 0);
-
return 0;
}
OpenPOWER on IntegriCloud