Skip to contentSkip to conversation

drm: intel_ldvs.c: add missing arg to backlight_device_register() call

PATCH In review Tom Zanussi 1 participant 1 message Jan 24, 2011 DRM drivers

lore
Share & tools
lore
#0 lore raw

PATCH 4/6 drm: intel_ldvs.c: add missing arg to backlight_device_register() call

backlight_device_register() added a backlight_props param - give it another arg to keep it happy.

---
 drivers/gpu/drm-psb/intel_lvds.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/gpu/drm-psb/intel_lvds.c +3 -1
index 16fbd79..a778436 100644
@@ -801,8 +801,10 @@ 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));
 		/* add /sys/class/backlight interface as standard */
-		psbbl_device = backlight_device_register("psblvds", &dev->pdev->dev, dev, &psbbl_ops);
+		psbbl_device = backlight_device_register("psblvds", &dev->pdev->dev, dev, &psbbl_ops, &props);
 		if (psbbl_device){
 #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,20)
 			down(&psbbl_device->sem);
Signature · 1 line
1.7.0.4