Fix build for Pi kernels with syscons enabled

This commit is contained in:
Oleksandr Tymoshenko 2016-04-19 23:30:22 +00:00
parent 94ebd6f5b4
commit e4ad736f4d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298305

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);