]> git.karo-electronics.de Git - linux-beck.git/commitdiff
backlight: fix backlight_device_register compile failures
authorRichard Purdie <rpurdie@rpsys.net>
Sat, 30 Dec 2006 15:40:11 +0000 (15:40 +0000)
committerLen Brown <len.brown@intel.com>
Tue, 2 Jan 2007 05:06:18 +0000 (00:06 -0500)
Fix breakage from commit 519ab5f2be65b72cf12ae99c89752bbe79b44df6 which
didn't update all references to backlight_device_register causing
compile failures.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/video/backlight/corgi_bl.c
drivers/video/backlight/hp680_bl.c
drivers/video/backlight/locomolcd.c

index 61587ca2cdbb5f708f3d0f37babec91fa3153163..fde1d9518123b6b04a024184a023537379a7324f 100644 (file)
@@ -121,7 +121,7 @@ static int corgibl_probe(struct platform_device *pdev)
                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);
 
index 1c569fb543ae80f6bef9d6954954398ae358a1c2..c07d8207fb549e1412b91a793f98e8b3d9719646 100644 (file)
@@ -105,7 +105,7 @@ static struct backlight_properties hp680bl_data = {
 static 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);
 
index 2d7905410b2ac61a11b1a9d83d0f59e42a6b86ba..fc812d96c31dfc5fae102db6512afc9592b409da 100644 (file)
@@ -184,7 +184,7 @@ static int locomolcd_probe(struct locomo_dev *ldev)
 
        local_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);