|
@@ -202,8 +202,16 @@ static int simplefb_probe(struct platform_device *pdev)
|
|
|
info->var.blue = params.format->blue;
|
|
|
info->var.transp = params.format->transp;
|
|
|
|
|
|
+ info->apertures = alloc_apertures(1);
|
|
|
+ if (!info->apertures) {
|
|
|
+ framebuffer_release(info);
|
|
|
+ return -ENOMEM;
|
|
|
+ }
|
|
|
+ info->apertures->ranges[0].base = info->fix.smem_start;
|
|
|
+ info->apertures->ranges[0].size = info->fix.smem_len;
|
|
|
+
|
|
|
info->fbops = &simplefb_ops;
|
|
|
- info->flags = FBINFO_DEFAULT;
|
|
|
+ info->flags = FBINFO_DEFAULT | FBINFO_MISC_FIRMWARE;
|
|
|
info->screen_base = devm_ioremap(&pdev->dev, info->fix.smem_start,
|
|
|
info->fix.smem_len);
|
|
|
if (!info->screen_base) {
|