summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-01-29 20:23:51 +0100
committerThierry Reding <treding@nvidia.com>2014-08-07 15:40:15 +0200
commit49b2946a82fe68f47d6bc3fdee1a9f402c82a7ff (patch)
treea6fe5c140d9bd205805c273908060ebdfea7fc5b
parentd3e9cb95c124a7338caa090f67a8d0a1cc0c1071 (diff)
WIP: pwm-backlight: Fail if pwms property does not existstaging/pwm
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--drivers/video/backlight/pwm_bl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c
index 62adfc9d37a7..1a8044567fd8 100644
--- a/drivers/video/backlight/pwm_bl.c
+++ b/drivers/video/backlight/pwm_bl.c
@@ -142,6 +142,7 @@ static int pwm_backlight_parse_dt(struct device *dev,
return -ENODEV;
memset(data, 0, sizeof(*data));
+ data->pwm_id = -1;
/* determine the number of brightness levels */
prop = of_find_property(node, "brightness-levels", &length);