Fix backlight_device_register compile failures/breakage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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(-)

Index: git/drivers/macintosh/via-pmu-backlight.c
===================================================================
--- git.orig/drivers/macintosh/via-pmu-backlight.c	2006-12-30 14:17:47.000000000 +0000
+++ git/drivers/macintosh/via-pmu-backlight.c	2006-12-30 15:28:26.000000000 +0000
@@ -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;
Index: git/drivers/video/backlight/corgi_bl.c
===================================================================
--- git.orig/drivers/video/backlight/corgi_bl.c	2006-12-30 14:18:15.000000000 +0000
+++ git/drivers/video/backlight/corgi_bl.c	2006-12-30 15:29:40.000000000 +0000
@@ -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);
 
Index: git/drivers/video/backlight/hp680_bl.c
===================================================================
--- git.orig/drivers/video/backlight/hp680_bl.c	2006-12-30 14:18:15.000000000 +0000
+++ git/drivers/video/backlight/hp680_bl.c	2006-12-30 15:29:49.000000000 +0000
@@ -105,7 +105,7 @@ static struct backlight_properties hp680
 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: git/drivers/video/backlight/locomolcd.c
===================================================================
--- git.orig/drivers/video/backlight/locomolcd.c	2006-12-30 14:18:15.000000000 +0000
+++ git/drivers/video/backlight/locomolcd.c	2006-12-30 15:30:04.000000000 +0000
@@ -184,7 +184,7 @@ static int locomolcd_probe(struct locomo
 
 	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);


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux