public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* compile fix for via-pmu-backlight
@ 2006-12-29  6:45 Dave Jones
  0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2006-12-29  6:45 UTC (permalink / raw)
  To: Linux Kernel

Not sure if this is right. I just copied the other conversions.
Given every other driver added a 'NULL' too, I'm a bit suspicious
but I lack the hardware to test this.

drivers/macintosh/via-pmu-backlight.c: In function 'pmu_backlight_init':
drivers/macintosh/via-pmu-backlight.c:150: error: too few arguments to function 'backlight_device_register'

Signed-off-by: Dave Jones <davej@redhat.com>

--- linux-2.6.19.noarch/drivers/macintosh/via-pmu-backlight.c~	2006-12-29 01:41:24.000000000 -0500
+++ linux-2.6.19.noarch/drivers/macintosh/via-pmu-backlight.c	2006-12-29 01:41:28.000000000 -0500
@@ -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;
-- 
http://www.codemonkey.org.uk

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-29  6:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-29  6:45 compile fix for via-pmu-backlight Dave Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox