diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cpu/samsung/exynos5250/cpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/samsung/exynos5250/cpu.c b/src/cpu/samsung/exynos5250/cpu.c index 09b670e9d8..e122413f50 100644 --- a/src/cpu/samsung/exynos5250/cpu.c +++ b/src/cpu/samsung/exynos5250/cpu.c @@ -68,7 +68,7 @@ static void exynos_displayport_init(device_t dev) vi.cmap = (void *)lcdbase; lcdbase += 64*KiB; - mmio_resource(dev, 1, lcdbase/KiB, fb_size + (KiB-1)/KiB); + mmio_resource(dev, 1, lcdbase/KiB, (fb_size + KiB - 1)/KiB); printk(BIOS_DEBUG, "Initializing exynos VGA, base %p\n",(void *)lcdbase); ret = lcd_ctrl_init(&vi, &panel, (void *)lcdbase); |