提交 2f18f8d6 编写于 作者: A Alexander Shiyan 提交者: Bryan Wu

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: NAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: NBryan Wu <cooloney@gmail.com>
上级 677d13f2
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册