diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2015-12-10 10:09:06 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2016-01-11 07:36:43 +0100 |
commit | 8777078015bb77f0561303b6dea23d40bd9f3053 (patch) | |
tree | 39bc51aee31750f606a4a84b036dfc94c98bfdbb /Documentation/DocBook/80211.tmpl | |
parent | backlight: tps65217_bl: Add MODULE_DEVICE_TABLE (diff) | |
download | linux-8777078015bb77f0561303b6dea23d40bd9f3053.tar.xz linux-8777078015bb77f0561303b6dea23d40bd9f3053.zip |
backlight: pwm_bl: Fix broken PWM backlight for non-dt platforms
Commit ee65ad0e2a9e ("backlight: pwm_bl: Avoid backlight flicker when
probed from DT") tries to dereference the device of_node pointer
unconditionally, causing a NULL pointer dereference on non-dt platforms.
Fix it by replacing the phandle variable with a node variable and
by checking that for NULL before dereferencing it.
Reported-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'Documentation/DocBook/80211.tmpl')
0 files changed, 0 insertions, 0 deletions