diff options
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/clocksource/cs5535-clockevt.c | 2 | ||||
| -rw-r--r-- | drivers/platform/x86/acer-wmi.c | 2 | ||||
| -rw-r--r-- | drivers/video/efifb.c | 11 |
3 files changed, 12 insertions, 3 deletions
diff --git a/drivers/clocksource/cs5535-clockevt.c b/drivers/clocksource/cs5535-clockevt.c index 27d20fac19d1..b314a999aabe 100644 --- a/drivers/clocksource/cs5535-clockevt.c +++ b/drivers/clocksource/cs5535-clockevt.c | |||
| @@ -21,7 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | #define DRV_NAME "cs5535-clockevt" | 22 | #define DRV_NAME "cs5535-clockevt" |
| 23 | 23 | ||
| 24 | static int timer_irq = CONFIG_CS5535_MFGPT_DEFAULT_IRQ; | 24 | static int timer_irq; |
| 25 | module_param_named(irq, timer_irq, int, 0644); | 25 | module_param_named(irq, timer_irq, int, 0644); |
| 26 | MODULE_PARM_DESC(irq, "Which IRQ to use for the clock source MFGPT ticks."); | 26 | MODULE_PARM_DESC(irq, "Which IRQ to use for the clock source MFGPT ticks."); |
| 27 | 27 | ||
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 07d14dfdf0b4..226b3e93498c 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c | |||
| @@ -934,7 +934,7 @@ static int __devinit acer_backlight_init(struct device *dev) | |||
| 934 | acer_backlight_device = bd; | 934 | acer_backlight_device = bd; |
| 935 | 935 | ||
| 936 | bd->props.power = FB_BLANK_UNBLANK; | 936 | bd->props.power = FB_BLANK_UNBLANK; |
| 937 | bd->props.brightness = max_brightness; | 937 | bd->props.brightness = read_brightness(bd); |
| 938 | bd->props.max_brightness = max_brightness; | 938 | bd->props.max_brightness = max_brightness; |
| 939 | backlight_update_status(bd); | 939 | backlight_update_status(bd); |
| 940 | return 0; | 940 | return 0; |
diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c index eb12182b2059..d25df51bb0d2 100644 --- a/drivers/video/efifb.c +++ b/drivers/video/efifb.c | |||
| @@ -161,8 +161,17 @@ static int efifb_setcolreg(unsigned regno, unsigned red, unsigned green, | |||
| 161 | return 0; | 161 | return 0; |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | static void efifb_destroy(struct fb_info *info) | ||
| 165 | { | ||
| 166 | if (info->screen_base) | ||
| 167 | iounmap(info->screen_base); | ||
| 168 | release_mem_region(info->aperture_base, info->aperture_size); | ||
| 169 | framebuffer_release(info); | ||
| 170 | } | ||
| 171 | |||
| 164 | static struct fb_ops efifb_ops = { | 172 | static struct fb_ops efifb_ops = { |
| 165 | .owner = THIS_MODULE, | 173 | .owner = THIS_MODULE, |
| 174 | .fb_destroy = efifb_destroy, | ||
| 166 | .fb_setcolreg = efifb_setcolreg, | 175 | .fb_setcolreg = efifb_setcolreg, |
| 167 | .fb_fillrect = cfb_fillrect, | 176 | .fb_fillrect = cfb_fillrect, |
| 168 | .fb_copyarea = cfb_copyarea, | 177 | .fb_copyarea = cfb_copyarea, |
| @@ -281,7 +290,7 @@ static int __init efifb_probe(struct platform_device *dev) | |||
| 281 | info->par = NULL; | 290 | info->par = NULL; |
| 282 | 291 | ||
| 283 | info->aperture_base = efifb_fix.smem_start; | 292 | info->aperture_base = efifb_fix.smem_start; |
| 284 | info->aperture_size = size_total; | 293 | info->aperture_size = size_remap; |
| 285 | 294 | ||
| 286 | info->screen_base = ioremap(efifb_fix.smem_start, efifb_fix.smem_len); | 295 | info->screen_base = ioremap(efifb_fix.smem_start, efifb_fix.smem_len); |
| 287 | if (!info->screen_base) { | 296 | if (!info->screen_base) { |
