aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ep93xx
diff options
context:
space:
mode:
authorHartley Sweeten <hartleys@visionengravers.com>2010-06-09 16:15:12 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-06-16 17:56:05 -0400
commit6ea4b7418dfd07dc76d20a3c3bf632ee7b59a2c4 (patch)
treeda3d9196b1d79a14b82d2f98925d3b1b0477eb19 /arch/arm/mach-ep93xx
parent7e27d6e778cd87b6f2415515d7127eba53fe5d02 (diff)
ARM: 6167/1: ep93xx: register backlight driver
Add the platform registration for the ep93xx backlight driver that is now merged. Since the pwm BRIGHT signal only functions if the video system is operating, register the backlight when the framebuffer device is registered. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Acked-by: Ryan Mallon <ryan@bluewatersys.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-ep93xx')
-rw-r--r--arch/arm/mach-ep93xx/core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c
index 9092677f63e..ac6aeeb974d 100644
--- a/arch/arm/mach-ep93xx/core.c
+++ b/arch/arm/mach-ep93xx/core.c
@@ -620,6 +620,11 @@ static struct platform_device ep93xx_fb_device = {
620 .resource = ep93xx_fb_resource, 620 .resource = ep93xx_fb_resource,
621}; 621};
622 622
623static struct platform_device ep93xx_bl_device = {
624 .name = "ep93xx-bl",
625 .id = -1,
626};
627
623/** 628/**
624 * ep93xx_register_fb - Register the framebuffer platform device. 629 * ep93xx_register_fb - Register the framebuffer platform device.
625 * @data: platform specific framebuffer configuration (__initdata) 630 * @data: platform specific framebuffer configuration (__initdata)
@@ -628,6 +633,7 @@ void __init ep93xx_register_fb(struct ep93xxfb_mach_info *data)
628{ 633{
629 ep93xxfb_data = *data; 634 ep93xxfb_data = *data;
630 platform_device_register(&ep93xx_fb_device); 635 platform_device_register(&ep93xx_fb_device);
636 platform_device_register(&ep93xx_bl_device);
631} 637}
632 638
633 639