diff options
-rw-r--r-- | drivers/video/simplefb.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index 588698986ce1..8d7810613058 100644 --- a/drivers/video/simplefb.c +++ b/drivers/video/simplefb.c | |||
@@ -202,8 +202,16 @@ static int simplefb_probe(struct platform_device *pdev) | |||
202 | info->var.blue = params.format->blue; | 202 | info->var.blue = params.format->blue; |
203 | info->var.transp = params.format->transp; | 203 | info->var.transp = params.format->transp; |
204 | 204 | ||
205 | info->apertures = alloc_apertures(1); | ||
206 | if (!info->apertures) { | ||
207 | framebuffer_release(info); | ||
208 | return -ENOMEM; | ||
209 | } | ||
210 | info->apertures->ranges[0].base = info->fix.smem_start; | ||
211 | info->apertures->ranges[0].size = info->fix.smem_len; | ||
212 | |||
205 | info->fbops = &simplefb_ops; | 213 | info->fbops = &simplefb_ops; |
206 | info->flags = FBINFO_DEFAULT; | 214 | info->flags = FBINFO_DEFAULT | FBINFO_MISC_FIRMWARE; |
207 | info->screen_base = devm_ioremap(&pdev->dev, info->fix.smem_start, | 215 | info->screen_base = devm_ioremap(&pdev->dev, info->fix.smem_start, |
208 | info->fix.smem_len); | 216 | info->fix.smem_len); |
209 | if (!info->screen_base) { | 217 | if (!info->screen_base) { |