Skip to content

Commit

Permalink
ARM: 6167/1: ep93xx: register backlight driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hartley Sweeten authored and Russell King committed Jun 16, 2010
1 parent 7e27d6e commit 6ea4b74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions arch/arm/mach-ep93xx/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,11 @@ static struct platform_device ep93xx_fb_device = {
.resource = ep93xx_fb_resource,
};

static struct platform_device ep93xx_bl_device = {
.name = "ep93xx-bl",
.id = -1,
};

/**
* ep93xx_register_fb - Register the framebuffer platform device.
* @data: platform specific framebuffer configuration (__initdata)
Expand All @@ -628,6 +633,7 @@ void __init ep93xx_register_fb(struct ep93xxfb_mach_info *data)
{
ep93xxfb_data = *data;
platform_device_register(&ep93xx_fb_device);
platform_device_register(&ep93xx_bl_device);
}


Expand Down

0 comments on commit 6ea4b74

Please sign in to comment.