Fix backlight_device_register compile failures/breakage
- From: Richard Purdie <rpurdie@xxxxxxxxx>
- Date: Sat, 30 Dec 2006 15:40:11 +0000
Fix breakage from commit 519ab5f2be65b72cf12ae99c89752bbe79b44df6 which
didn't update all references to backlight_device_register causing
compile failures.
Signed-off-by: Richard Purdie <rpurdie@xxxxxxxxx>
---
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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Prev by Date: Re: [patch 1/5] video sysfs support - take 2: Add dev argument for backlight_device_register.
- Next by Date: [PATCH -mm] compile error in drivers/media/video
- Previous by thread: Re: [patch 1/5] video sysfs support - take 2: Add dev argument for backlight_device_register.
- Next by thread: [PATCH -mm] compile error in drivers/media/video
- Index(es):
Relevant Pages
- [GIT PATCH] ACPI patches for 2.6.24-rc3 -- part 2
... This fixes the Thinkpad T61 OOPS regression due to the -rc3 thermal changes. ...
commit 6ac47735cdba6ac8c64cb7595762a75fdcafaa6d ... Changed resolution of named references
in packages ... Fixed a problem with the Package operator where all named ... (Linux-Kernel) - Re: [4/6] 2.6.21-rc2: known regressions
... References: http://lkml.org/lkml/2007/2/25/206 ... commit 994efacdf9a087b52f71e620b58dfa526b0cf928
... The confirmed fix is in the ACPI test branch for this. ... Submitter:
Yaroslav Halchenko ... (Linux-Kernel) - 2.6.20-rc7: known regressions (v2) (part 1)
... If you find your name in the Cc header, you are either submitter of one ...
References: http://lkml.org/lkml/2007/1/22/141 ... Status: unknown ... commit
3b00315799d78f76531b71435fbc2643cd71ae4c ... (Linux-Kernel) - Re: [1/4] 2.6.23-rc6: known regressions
... References: http://lkml.org/lkml/2007/8/29/136 ... Submitter: Chuck Ebbert
... Handled-By:? ... Just pushed out with commit ... (Linux-Kernel) - 2.6.20-rc6: known unfixed regressions (v2) (part 2)
... If you find your name in the Cc header, you are either submitter of one ...
References: http://www.spinics.net/lists/linux-ide/msg06545.html ... commit 3b00315799d78f76531b71435fbc2643cd71ae4c
... Submitter: Cijoml Cijomlovic Cijomlov ... (Linux-Kernel)