rk30 lcdc: win2 support
[firefly-linux-kernel-4.4.55.git] / drivers / video / offb.c
index 24e1fc6b56580167743b4d118338c0c0f6b6c42f..3251a0236d5639660f47fdca631f98bd5299015c 100644 (file)
@@ -377,7 +377,7 @@ static void __init offb_init_fb(const char *name, const char *full_name,
                                int pitch, unsigned long address,
                                int foreign_endian, struct device_node *dp)
 {
-       unsigned long res_size = pitch * height * (depth + 7) / 8;
+       unsigned long res_size = pitch * height;
        struct offb_par *par = &default_par;
        unsigned long res_start = address;
        struct fb_fix_screeninfo *fix;