• Ryan Mallon's avatar
    ep93xx: Use ioremap for backlight driver · 0fd19580
    Ryan Mallon authored
    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: default avatarRyan Mallon <rmallon@gmail.com>
    Suggested-by: default avatarArnd 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: default avatarArnd Bergmann <arnd@arndb.de>
    Acked-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
    0fd19580
ep93xx-fb.c 17.4 KB