Fix build for Pi kernels with syscons enabled

This commit is contained in:
gonzo 2016-04-19 23:30:22 +00:00
parent d55c237423
commit 709b38ddd3

View File

@ -146,10 +146,10 @@ bcm_fb_attach(device_t dev)
sc = device_get_softc(dev);
memset(&fb, 0, sizeof(fb));
if (bcm2835_mbox_fb_get_w_h(dev, &fb) != 0)
if (bcm2835_mbox_fb_get_w_h(&fb) != 0)
return (ENXIO);
fb.bpp = FB_DEPTH;
if (bcm2835_mbox_fb_init(dev, &fb) != 0)
if (bcm2835_mbox_fb_init(&fb) != 0)
return (ENXIO);
sc->fb_addr = (intptr_t)pmap_mapdev(fb.base, fb.size);