video: backlight: pwm_bl: Fix the bug of Splashing screen when boot
authorDavid Wu <david.wu@rock-chips.com>
Fri, 3 Mar 2017 14:16:09 +0000 (22:16 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 6 Mar 2017 10:28:40 +0000 (18:28 +0800)
The pwm_apply_args() should be removed when switching to the atomic
PWM API. Oherwise, the screen would splashing as the backlight is
disabled once when boot.

Change-Id: I0cadd471db54140192c39b9d7c6a673862e8f8d8
Signed-off-by: David Wu <david.wu@rock-chips.com>
drivers/video/backlight/pwm_bl.c

index b2b366bb0f9784294a287ea220777cb9cc5a9e19..aab5e4d3e6ffc67e01a8c6ede3208337c396fc9f 100644 (file)
@@ -307,12 +307,6 @@ static int pwm_backlight_probe(struct platform_device *pdev)
 
        dev_dbg(&pdev->dev, "got pwm for backlight\n");
 
-       /*
-        * FIXME: pwm_apply_args() should be removed when switching to
-        * the atomic PWM API.
-        */
-       pwm_apply_args(pb->pwm);
-
        /*
         * The DT case will set the pwm_period_ns field to 0 and store the
         * period, parsed from the DT, in the PWM device. For the non-DT case,