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:
Oleksandr Tymoshenko 2016-10-14 00:42:08 +00:00
parent 8ff1636c1a
commit be4b107168

View File

@ -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) {