Skip to contentSkip to conversation

compile fix for via-pmu-backlight

PATCH Dave Jones 1 participant 1 message Dec 29, 2006 Linux for power macintosh

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

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'

drivers/macintosh/via-pmu-backlight.c renamed from 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;
Signature · 1 line
http://www.codemonkey.org.uk