Fix backlight_device_register compile failures/breakage
Fix breakage from commit 519ab5f2be65b72cf12ae99c89752bbe79b44df6 which didn't update all references to backlight_device_register causing compile failures.
Signed-off-by Richard Purdie <[email protected]>
--- drivers/macintosh/via-pmu-backlight.c | 2 +- drivers/video/backlight/corgi_bl.c | 2 +- drivers/video/backlight/hp680_bl.c | 2 +- drivers/video/backlight/locomolcd.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
drivers/macintosh/via-pmu-backlight.c +1 -1
@@ -147,7 +147,7 @@ void __init pmu_backlight_init()snprintf (name,sizeof (name),"pmubl" ); - bd =backlight_device_register (name,NULL , &pmu_backlight_data); + bd =backlight_device_register (name,NULL ,NULL , &pmu_backlight_data);if (IS_ERR (bd)) {printk ("pmubl: Backlight registration failed\n" ); goto error;
drivers/video/backlight/corgi_bl.c +1 -1
@@ -121,7 +121,7 @@ static int corgibl_probe(struct platform machinfo->limit_mask =-1 ; corgi_backlight_device =backlight_device_register ("corgi-bl" , -NULL , &corgibl_data); + &pdev->dev,NULL , &corgibl_data);if (IS_ERR (corgi_backlight_device))return PTR_ERR (corgi_backlight_device);
drivers/video/backlight/hp680_bl.c +1 -1
@@ -105,7 +105,7 @@ static struct backlight_properties hp680static int __init hp680bl_probe (struct platform_device *dev) { hp680_backlight_device =backlight_device_register ("hp680-bl" , -NULL , &hp680bl_data); + &dev->dev,NULL , &hp680bl_data);if (IS_ERR (hp680_backlight_device))return PTR_ERR (hp680_backlight_device);
drivers/video/backlight/locomolcd.c +1 -1
@@ -184,7 +184,7 @@ static int locomolcd_probe(struct locomolocal_irq_restore (flags); - locomolcd_bl_device =backlight_device_register ("locomo-bl" ,NULL , &locomobl_data); + locomolcd_bl_device =backlight_device_register ("locomo-bl" , &ldev->dev,NULL , &locomobl_data);if (IS_ERR (locomolcd_bl_device))return PTR_ERR (locomolcd_bl_device);