Commit 5f964213 authored by Siarhei Siamashka's avatar Siarhei Siamashka
Browse files

G2D: attempt loading 'g2d_23' kernel module



It might be not statically compiled into kernel (for example in Fedora),
so we should try to explictly load it.
Signed-off-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
parent cc1b1410
......@@ -853,6 +853,11 @@ FBDevScreenInit(SCREEN_INIT_ARGS_DECL)
xf86DrvMsg(pScrn->scrnIndex, X_WARNING,
"Render extension initialisation failed\n");
/* try to load G2D kernel module before initializing sunxi-disp */
if (!xf86LoadKernelModule("g2d_23"))
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
"can't load 'g2d_23' kernel module\n");
fPtr->sunxi_disp_private = sunxi_disp_init(xf86FindOptionValue(
fPtr->pEnt->device->options,"fbdev"),
fPtr->fbmem);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment