]> git.karo-electronics.de Git - mv-sheeva.git/commit
ep93xx: Use ioremap for backlight driver
authorRyan Mallon <rmallon@gmail.com>
Sun, 22 Jan 2012 09:31:32 +0000 (20:31 +1100)
committerRyan Mallon <rmallon@gmail.com>
Wed, 14 Mar 2012 00:41:10 +0000 (11:41 +1100)
commit0fd1958050e92c859152e775e548284582335d25
treedd457bc43e459ff65aa0dba5034ec52de5d43364
parent2ae18b471d91f7622e54f18ed3a4b5b20e9bf871
ep93xx: Use ioremap for backlight driver

The ep93xx backlight driver uses a single register within the
framebuffer's register space. Currently the backlight driver uses a
static IO mapping for the register since the memory cannot be
requested by both drivers.

Convert the static mapping to use ioremap so that we can remove the
dependency on mach/hardware.h. To do so, we need remove the
request_mem_region from both the backlight and framebuffer drivers,
since whichever driver is loaded second will fail with -EBUSY
otherwise.

A proper fix is still required, and a FIXME comment has been added to
both drivers.

Signed-off-by: Ryan Mallon <rmallon@gmail.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
Cc: Mika Westerberg <mika.westerberg@iki.fi>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
arch/arm/mach-ep93xx/core.c
drivers/video/backlight/ep93xx_bl.c
drivers/video/ep93xx-fb.c