ARM: fix lcd power build failure in collie_defconfig
Subsystems (5)
PATCH 1/1 ARM: fix lcd power build failure in collie_defconfig
Commit 086ada54abaa4316e8603f02410fe8ebc9ba2de1
"FB: sa1100: remove global sa1100fb_.*_power function pointers"
got rid of all instances but one in locomolcd.c -- which was conditional on CONFIG_SA1100_COLLIE. The associated .power field which replaces the global is populated in mach-sa1100/collie.c so move the assignment there, but make it conditional on the locomolcd support, so use CONFIG_BACKLIGHT_LOCOMO in that file.
---
[ unchanged from original Mar6 send, just adding rmk ack ]
arch/arm/mach-sa1100/collie.c +4 -0
@@ -313,6 +313,10 @@ static struct sa1100fb_mach_info collie_lcd_info = { .lccr0 = LCCR0_Color | LCCR0_Sngl | LCCR0_Act, .lccr3 = LCCR3_OutEnH | LCCR3_PixRsEdg |LCCR3_ACBsDiv (2 ), + +#ifdef CONFIG_BACKLIGHT_LOCOMO + .lcd_power = locomolcd_power +#endif };static void __init collie_init (void )
arch/arm/mach-sa1100/include/mach/collie.h +2 -1
@@ -1,7 +1,7 @@/* * arch/arm/mach-sa1100/include/mach/collie.h * -* This file contains the hardware specific definitions for Assabet +* This file contains the hardware specific definitions for Collie * Only include this file from SA1100-specific files. * * ChangeLog:
@@ -13,6 +13,7 @@#ifndef __ASM_ARCH_COLLIE_H#define __ASM_ARCH_COLLIE_H +extern void locomolcd_power (int on);#define COLLIE_SCOOP_GPIO_BASE (GPIO_MAX + 1)#define COLLIE_GPIO_CHARGE_ON (COLLIE_SCOOP_GPIO_BASE + 0)
drivers/video/backlight/locomolcd.c +1 -8
@@ -229,14 +229,7 @@ static struct locomo_driver poodle_lcd_driver = {static int __init locomolcd_init (void ) { -int ret =locomo_driver_register (&poodle_lcd_driver); -if (ret) -return ret; - -#ifdef CONFIG_SA1100_COLLIE - sa1100fb_lcd_power = locomolcd_power; -#endif -return 0 ; +return locomo_driver_register (&poodle_lcd_driver); } static void __exit locomolcd_exit(void)
Signature · 1 line
1.7.9.1
Olof Johansson
AppliedPATCH 1/1 ARM: fix lcd power build failure in collie_defconfig
Quoted 10 lines · Paul Gortmaker
Commit
086ada54abaa4316e8603f02410fe8ebc9ba2de1"FB: sa1100: remove global sa1100fb_.*_power function pointers"
got rid of all instances but one in
locomolcd.c-- which was conditional onCONFIG_SA1100_COLLIE. The associated .power field which replaces the global is populated inmach-sa1100/collie.cso move the assignment there, but make it conditional on the locomolcd support, so useCONFIG_BACKLIGHT_LOCOMOin that file.
Quoted 3 lines
Cc arm at kernel.orgAcked-by Russell King <[email protected]>Signed-off-by Paul Gortmaker <[email protected]>
Thanks, applied to fixes.
-Olof