backlight: Clean up pmac_backlight handling

Move the setting/unsetting of pmac_backlight into the
backlight core instead of doing it in each driver.

Signed-off-by: Richard Purdie <[email protected]>
This commit is contained in:
Richard Purdie 2007-02-10 15:04:08 +00:00
commit 321709c599
8 changed files with 34 additions and 101 deletions

View file

@ -170,11 +170,6 @@ void __init pmu_backlight_init()
bd->props->power = FB_BLANK_UNBLANK;
backlight_update_status(bd);
mutex_lock(&pmac_backlight_mutex);
if (!pmac_backlight)
pmac_backlight = bd;
mutex_unlock(&pmac_backlight_mutex);
printk("pmubl: Backlight initialized (%s)\n", name);
return;