From: Tom Zanussi <[email protected]> If unset, props.type gets the value 0, which is no longer maps to a valid type value, so initialize it explicitly.
Signed-off-by: Tom Zanussi <[email protected]> --- drivers/gpu/drm-psb/intel_lvds.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm-psb/intel_lvds.c b/drivers/gpu/drm-psb/intel_lvds.c index a778436..9511c04 100644 --- a/drivers/gpu/drm-psb/intel_lvds.c +++ b/drivers/gpu/drm-psb/intel_lvds.c @@ -803,6 +803,7 @@ void intel_lvds_init(struct drm_device *dev) if ((blc_type == BLC_I2C_TYPE) || (blc_type == BLC_PWM_TYPE)){ struct backlight_properties props; memset(&props, 0, sizeof(struct backlight_properties)); + props.type = BACKLIGHT_RAW; /* add /sys/class/backlight interface as standard */ psbbl_device = backlight_device_register("psblvds", &dev->pdev->dev, dev, &psbbl_ops, &props); if (psbbl_device){ -- 1.7.0.4 _______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
