Fix BCM238x framebuffer driver build for ARM64
VM_MEMATTR_WRITE_COMBINING can be undefined for some platforms, use it only if it's defined
This commit is contained in:
parent
8ff1636c1a
commit
be4b107168
@ -120,7 +120,9 @@ bcm_fb_setup_fbd(struct bcmsc_softc *sc)
|
||||
sc->info.fb_width = fb.xres;
|
||||
sc->info.fb_height = fb.yres;
|
||||
sc->info.fb_flags = FB_FLAG_MEMATTR;
|
||||
#ifdef VM_MEMATTR_WRITE_COMBINING
|
||||
sc->info.fb_memattr = VM_MEMATTR_WRITE_COMBINING;
|
||||
#endif
|
||||
|
||||
if (sc->fbswap) {
|
||||
switch (sc->info.fb_bpp) {
|
||||
|
Loading…
Reference in New Issue
Block a user