Skip to content

Commit c3611b6

Browse files
committed
Merge tag 'fbdev-v4.16' of git://github.com/bzolnier/linux
Pull fbdev updates from Bartlomiej Zolnierkiewicz: "There is nothing really major here: - fix display-timings lookup in the Device Tree in atmel_lcdfb driver (Johan Hovold) - fix video mode and line_length to be set correctly in vfb driver (Pieter "PoroCYon" Sluys) - fix returning nonsensical values to the user-space on GIO_FONTX ioctl when using dummy console (Nicolas Pitre) - add missing license tag to mmpfb driver (Arnd Bergmann) - convert radeonfb and pxa3xx_gcu drivers to use ktime_get[_ts64]() instead of the deprecated do_gettimeofday() (Arnd Bergmann) - switch udlfb driver from using the pr_*() logging functions to the dev_*() ones + related cleanups (Ladislav Michl) - use __raw I/O accessors also on arm64 (Ji Zhang) - fix Kconfig help text for intelfb driver (Randy Dunlap) - do not duplicate features data in omapfb driver (Ladislav Michl) - misc cleanups (Colin Ian King, Markus Elfring, Rasmus Villemoes, Vasyl Gomonovych, Himanshu Jha, Michael Trimarchi)" * tag 'fbdev-v4.16' of git://github.com/bzolnier/linux: (25 commits) video: udlfb: Switch from the pr_*() to the dev_*() logging functions video: udlfb: Constify read only data video: fbdev/mmp: add MODULE_LICENSE console/dummy: leave .con_font_get set to NULL fbdev: mxsfb: use framebuffer_alloc in the correct way video: udlfb: Do not name private data 'dev' video: udlfb: Remove noisy warnings video: udlfb: Remove redundant gdev variable video: udlfb: Remove unnecessary local variable fbdev: auo_k190x: Use zeroing memory allocator instead of allocator/memset vfb: fix video mode and line_length being set when loaded fbdev: arm64 use __raw I/O memory api omapfb: dss: Do not duplicate features data video: fbdev: omap2: Use PTR_ERR_OR_ZERO() fbdev: au1200fb: delete duplicate header contents fbdev: pxa3xx: use ktime_get_ts64 for time stamps fbdev: radeon: use ktime_get() for HZ calibration video: smscufx: Improve a size determination in two functions video: udlfb: Delete an unnecessary return statement in two functions video: udlfb: Improve a size determination in dlfb_alloc_urb_list() ...
2 parents cc006a2 + 5865889 commit c3611b6

21 files changed

Lines changed: 421 additions & 777 deletions

File tree

‎drivers/video/console/dummycon.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ const struct consw dummy_con = {
6767
.con_switch = DUMMY,
6868
.con_blank = DUMMY,
6969
.con_font_set = DUMMY,
70-
.con_font_get = DUMMY,
7170
.con_font_default = DUMMY,
7271
.con_font_copy = DUMMY,
7372
};

‎drivers/video/fbdev/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1188,7 +1188,7 @@ config FB_INTEL
11881188
830M/845G/852GM/855GM/865G/915G/915GM/945G/945GM/965G/965GM chipsets.
11891189
Say Y if you have and plan to use such a board.
11901190

1191-
To make FB_INTELFB=Y work you need to say AGP_INTEL=y too.
1191+
To make FB_INTEL=Y work you need to say AGP_INTEL=y too.
11921192

11931193
To compile this driver as a module, choose M here: the
11941194
module will be called intelfb.

‎drivers/video/fbdev/atmel_lcdfb.c‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ static int atmel_lcdfb_of_init(struct atmel_lcdfb_info *sinfo)
11191119
goto put_display_node;
11201120
}
11211121

1122-
timings_np = of_find_node_by_name(display_np, "display-timings");
1122+
timings_np = of_get_child_by_name(display_np, "display-timings");
11231123
if (!timings_np) {
11241124
dev_err(dev, "failed to find display-timings node\n");
11251125
ret = -ENODEV;
@@ -1140,6 +1140,12 @@ static int atmel_lcdfb_of_init(struct atmel_lcdfb_info *sinfo)
11401140
fb_add_videomode(&fb_vm, &info->modelist);
11411141
}
11421142

1143+
/*
1144+
* FIXME: Make sure we are not referencing any fields in display_np
1145+
* and timings_np and drop our references to them before returning to
1146+
* avoid leaking the nodes on probe deferral and driver unbind.
1147+
*/
1148+
11431149
return 0;
11441150

11451151
put_timings_node:

‎drivers/video/fbdev/aty/radeon_base.c‎

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -583,8 +583,8 @@ static int radeon_probe_pll_params(struct radeonfb_info *rinfo)
583583
int hTotal, vTotal, num, denom, m, n;
584584
unsigned long long hz, vclk;
585585
long xtal;
586-
struct timeval start_tv, stop_tv;
587-
long total_secs, total_usecs;
586+
ktime_t start_time, stop_time;
587+
u64 total_usecs;
588588
int i;
589589

590590
/* Ugh, we cut interrupts, bad bad bad, but we want some precision
@@ -600,7 +600,7 @@ static int radeon_probe_pll_params(struct radeonfb_info *rinfo)
600600
if (((INREG(CRTC_VLINE_CRNT_VLINE) >> 16) & 0x3ff) == 0)
601601
break;
602602

603-
do_gettimeofday(&start_tv);
603+
start_time = ktime_get();
604604

605605
for(i=0; i<1000000; i++)
606606
if (((INREG(CRTC_VLINE_CRNT_VLINE) >> 16) & 0x3ff) != 0)
@@ -610,18 +610,14 @@ static int radeon_probe_pll_params(struct radeonfb_info *rinfo)
610610
if (((INREG(CRTC_VLINE_CRNT_VLINE) >> 16) & 0x3ff) == 0)
611611
break;
612612

613-
do_gettimeofday(&stop_tv);
613+
stop_time = ktime_get();
614614

615615
local_irq_enable();
616616

617-
total_secs = stop_tv.tv_sec - start_tv.tv_sec;
618-
if (total_secs > 10)
617+
total_usecs = ktime_us_delta(stop_time, start_time);
618+
if (total_usecs >= 10 * USEC_PER_SEC || total_usecs == 0)
619619
return -1;
620-
total_usecs = stop_tv.tv_usec - start_tv.tv_usec;
621-
total_usecs += total_secs * 1000000;
622-
if (total_usecs < 0)
623-
total_usecs = -total_usecs;
624-
hz = 1000000/total_usecs;
620+
hz = USEC_PER_SEC/(u32)total_usecs;
625621

626622
hTotal = ((INREG(CRTC_H_TOTAL_DISP) & 0x1ff) + 1) * 8;
627623
vTotal = ((INREG(CRTC_V_TOTAL_DISP) & 0x3ff) + 1);

‎drivers/video/fbdev/au1200fb.h‎

Lines changed: 0 additions & 286 deletions
Original file line numberDiff line numberDiff line change
@@ -284,289 +284,3 @@ struct au1200_lcd {
284284

285285
/********************************************************************/
286286
#endif /* _AU1200LCD_H */
287-
/*
288-
* BRIEF MODULE DESCRIPTION
289-
* Hardware definitions for the Au1200 LCD controller
290-
*
291-
* Copyright 2004 AMD
292-
* Author: AMD
293-
*
294-
* This program is free software; you can redistribute it and/or modify it
295-
* under the terms of the GNU General Public License as published by the
296-
* Free Software Foundation; either version 2 of the License, or (at your
297-
* option) any later version.
298-
*
299-
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
300-
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
301-
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
302-
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
303-
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
304-
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
305-
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
306-
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
307-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
308-
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
309-
*
310-
* You should have received a copy of the GNU General Public License along
311-
* with this program; if not, write to the Free Software Foundation, Inc.,
312-
* 675 Mass Ave, Cambridge, MA 02139, USA.
313-
*/
314-
315-
#ifndef _AU1200LCD_H
316-
#define _AU1200LCD_H
317-
318-
/********************************************************************/
319-
#define AU1200_LCD_ADDR 0xB5000000
320-
321-
#define uint8 unsigned char
322-
#define uint32 unsigned int
323-
324-
struct au1200_lcd {
325-
volatile uint32 reserved0;
326-
volatile uint32 screen;
327-
volatile uint32 backcolor;
328-
volatile uint32 horztiming;
329-
volatile uint32 verttiming;
330-
volatile uint32 clkcontrol;
331-
volatile uint32 pwmdiv;
332-
volatile uint32 pwmhi;
333-
volatile uint32 reserved1;
334-
volatile uint32 winenable;
335-
volatile uint32 colorkey;
336-
volatile uint32 colorkeymsk;
337-
struct
338-
{
339-
volatile uint32 cursorctrl;
340-
volatile uint32 cursorpos;
341-
volatile uint32 cursorcolor0;
342-
volatile uint32 cursorcolor1;
343-
volatile uint32 cursorcolor2;
344-
uint32 cursorcolor3;
345-
} hwc;
346-
volatile uint32 intstatus;
347-
volatile uint32 intenable;
348-
volatile uint32 outmask;
349-
volatile uint32 fifoctrl;
350-
uint32 reserved2[(0x0100-0x0058)/4];
351-
struct
352-
{
353-
volatile uint32 winctrl0;
354-
volatile uint32 winctrl1;
355-
volatile uint32 winctrl2;
356-
volatile uint32 winbuf0;
357-
volatile uint32 winbuf1;
358-
volatile uint32 winbufctrl;
359-
uint32 winreserved0;
360-
uint32 winreserved1;
361-
} window[4];
362-
363-
uint32 reserved3[(0x0400-0x0180)/4];
364-
365-
volatile uint32 palette[(0x0800-0x0400)/4];
366-
367-
volatile uint8 cursorpattern[256];
368-
};
369-
370-
/* lcd_screen */
371-
#define LCD_SCREEN_SEN (1<<31)
372-
#define LCD_SCREEN_SX (0x07FF<<19)
373-
#define LCD_SCREEN_SY (0x07FF<< 8)
374-
#define LCD_SCREEN_SWP (1<<7)
375-
#define LCD_SCREEN_SWD (1<<6)
376-
#define LCD_SCREEN_PT (7<<0)
377-
#define LCD_SCREEN_PT_TFT (0<<0)
378-
#define LCD_SCREEN_SX_N(WIDTH) ((WIDTH-1)<<19)
379-
#define LCD_SCREEN_SY_N(HEIGHT) ((HEIGHT-1)<<8)
380-
#define LCD_SCREEN_PT_CSTN (1<<0)
381-
#define LCD_SCREEN_PT_CDSTN (2<<0)
382-
#define LCD_SCREEN_PT_M8STN (3<<0)
383-
#define LCD_SCREEN_PT_M4STN (4<<0)
384-
385-
/* lcd_backcolor */
386-
#define LCD_BACKCOLOR_SBGR (0xFF<<16)
387-
#define LCD_BACKCOLOR_SBGG (0xFF<<8)
388-
#define LCD_BACKCOLOR_SBGB (0xFF<<0)
389-
#define LCD_BACKCOLOR_SBGR_N(N) ((N)<<16)
390-
#define LCD_BACKCOLOR_SBGG_N(N) ((N)<<8)
391-
#define LCD_BACKCOLOR_SBGB_N(N) ((N)<<0)
392-
393-
/* lcd_winenable */
394-
#define LCD_WINENABLE_WEN3 (1<<3)
395-
#define LCD_WINENABLE_WEN2 (1<<2)
396-
#define LCD_WINENABLE_WEN1 (1<<1)
397-
#define LCD_WINENABLE_WEN0 (1<<0)
398-
399-
/* lcd_colorkey */
400-
#define LCD_COLORKEY_CKR (0xFF<<16)
401-
#define LCD_COLORKEY_CKG (0xFF<<8)
402-
#define LCD_COLORKEY_CKB (0xFF<<0)
403-
#define LCD_COLORKEY_CKR_N(N) ((N)<<16)
404-
#define LCD_COLORKEY_CKG_N(N) ((N)<<8)
405-
#define LCD_COLORKEY_CKB_N(N) ((N)<<0)
406-
407-
/* lcd_colorkeymsk */
408-
#define LCD_COLORKEYMSK_CKMR (0xFF<<16)
409-
#define LCD_COLORKEYMSK_CKMG (0xFF<<8)
410-
#define LCD_COLORKEYMSK_CKMB (0xFF<<0)
411-
#define LCD_COLORKEYMSK_CKMR_N(N) ((N)<<16)
412-
#define LCD_COLORKEYMSK_CKMG_N(N) ((N)<<8)
413-
#define LCD_COLORKEYMSK_CKMB_N(N) ((N)<<0)
414-
415-
/* lcd windows control 0 */
416-
#define LCD_WINCTRL0_OX (0x07FF<<21)
417-
#define LCD_WINCTRL0_OY (0x07FF<<10)
418-
#define LCD_WINCTRL0_A (0x00FF<<2)
419-
#define LCD_WINCTRL0_AEN (1<<1)
420-
#define LCD_WINCTRL0_OX_N(N) ((N)<<21)
421-
#define LCD_WINCTRL0_OY_N(N) ((N)<<10)
422-
#define LCD_WINCTRL0_A_N(N) ((N)<<2)
423-
424-
/* lcd windows control 1 */
425-
#define LCD_WINCTRL1_PRI (3<<30)
426-
#define LCD_WINCTRL1_PIPE (1<<29)
427-
#define LCD_WINCTRL1_FRM (0xF<<25)
428-
#define LCD_WINCTRL1_CCO (1<<24)
429-
#define LCD_WINCTRL1_PO (3<<22)
430-
#define LCD_WINCTRL1_SZX (0x07FF<<11)
431-
#define LCD_WINCTRL1_SZY (0x07FF<<0)
432-
#define LCD_WINCTRL1_FRM_1BPP (0<<25)
433-
#define LCD_WINCTRL1_FRM_2BPP (1<<25)
434-
#define LCD_WINCTRL1_FRM_4BPP (2<<25)
435-
#define LCD_WINCTRL1_FRM_8BPP (3<<25)
436-
#define LCD_WINCTRL1_FRM_12BPP (4<<25)
437-
#define LCD_WINCTRL1_FRM_16BPP655 (5<<25)
438-
#define LCD_WINCTRL1_FRM_16BPP565 (6<<25)
439-
#define LCD_WINCTRL1_FRM_16BPP556 (7<<25)
440-
#define LCD_WINCTRL1_FRM_16BPPI1555 (8<<25)
441-
#define LCD_WINCTRL1_FRM_16BPPI5551 (9<<25)
442-
#define LCD_WINCTRL1_FRM_16BPPA1555 (10<<25)
443-
#define LCD_WINCTRL1_FRM_16BPPA5551 (11<<25)
444-
#define LCD_WINCTRL1_FRM_24BPP (12<<25)
445-
#define LCD_WINCTRL1_FRM_32BPP (13<<25)
446-
#define LCD_WINCTRL1_PRI_N(N) ((N)<<30)
447-
#define LCD_WINCTRL1_PO_00 (0<<22)
448-
#define LCD_WINCTRL1_PO_01 (1<<22)
449-
#define LCD_WINCTRL1_PO_10 (2<<22)
450-
#define LCD_WINCTRL1_PO_11 (3<<22)
451-
#define LCD_WINCTRL1_SZX_N(N) ((N-1)<<11)
452-
#define LCD_WINCTRL1_SZY_N(N) ((N-1)<<0)
453-
454-
/* lcd windows control 2 */
455-
#define LCD_WINCTRL2_CKMODE (3<<24)
456-
#define LCD_WINCTRL2_DBM (1<<23)
457-
#define LCD_WINCTRL2_RAM (3<<21)
458-
#define LCD_WINCTRL2_BX (0x1FFF<<8)
459-
#define LCD_WINCTRL2_SCX (0xF<<4)
460-
#define LCD_WINCTRL2_SCY (0xF<<0)
461-
#define LCD_WINCTRL2_CKMODE_00 (0<<24)
462-
#define LCD_WINCTRL2_CKMODE_01 (1<<24)
463-
#define LCD_WINCTRL2_CKMODE_10 (2<<24)
464-
#define LCD_WINCTRL2_CKMODE_11 (3<<24)
465-
#define LCD_WINCTRL2_RAM_NONE (0<<21)
466-
#define LCD_WINCTRL2_RAM_PALETTE (1<<21)
467-
#define LCD_WINCTRL2_RAM_GAMMA (2<<21)
468-
#define LCD_WINCTRL2_RAM_BUFFER (3<<21)
469-
#define LCD_WINCTRL2_BX_N(N) ((N)<<8)
470-
#define LCD_WINCTRL2_SCX_1 (0<<4)
471-
#define LCD_WINCTRL2_SCX_2 (1<<4)
472-
#define LCD_WINCTRL2_SCX_4 (2<<4)
473-
#define LCD_WINCTRL2_SCY_1 (0<<0)
474-
#define LCD_WINCTRL2_SCY_2 (1<<0)
475-
#define LCD_WINCTRL2_SCY_4 (2<<0)
476-
477-
/* lcd windows buffer control */
478-
#define LCD_WINBUFCTRL_DB (1<<1)
479-
#define LCD_WINBUFCTRL_DBN (1<<0)
480-
481-
/* lcd_intstatus, lcd_intenable */
482-
#define LCD_INT_IFO (0xF<<14)
483-
#define LCD_INT_IFU (0xF<<10)
484-
#define LCD_INT_OFO (1<<9)
485-
#define LCD_INT_OFU (1<<8)
486-
#define LCD_INT_WAIT (1<<3)
487-
#define LCD_INT_SD (1<<2)
488-
#define LCD_INT_SA (1<<1)
489-
#define LCD_INT_SS (1<<0)
490-
491-
/* lcd_horztiming */
492-
#define LCD_HORZTIMING_HND2 (0x1FF<<18)
493-
#define LCD_HORZTIMING_HND1 (0x1FF<<9)
494-
#define LCD_HORZTIMING_HPW (0x1FF<<0)
495-
#define LCD_HORZTIMING_HND2_N(N)(((N)-1)<<18)
496-
#define LCD_HORZTIMING_HND1_N(N)(((N)-1)<<9)
497-
#define LCD_HORZTIMING_HPW_N(N) (((N)-1)<<0)
498-
499-
/* lcd_verttiming */
500-
#define LCD_VERTTIMING_VND2 (0x1FF<<18)
501-
#define LCD_VERTTIMING_VND1 (0x1FF<<9)
502-
#define LCD_VERTTIMING_VPW (0x1FF<<0)
503-
#define LCD_VERTTIMING_VND2_N(N)(((N)-1)<<18)
504-
#define LCD_VERTTIMING_VND1_N(N)(((N)-1)<<9)
505-
#define LCD_VERTTIMING_VPW_N(N) (((N)-1)<<0)
506-
507-
/* lcd_clkcontrol */
508-
#define LCD_CLKCONTROL_EXT (1<<22)
509-
#define LCD_CLKCONTROL_DELAY (3<<20)
510-
#define LCD_CLKCONTROL_CDD (1<<19)
511-
#define LCD_CLKCONTROL_IB (1<<18)
512-
#define LCD_CLKCONTROL_IC (1<<17)
513-
#define LCD_CLKCONTROL_IH (1<<16)
514-
#define LCD_CLKCONTROL_IV (1<<15)
515-
#define LCD_CLKCONTROL_BF (0x1F<<10)
516-
#define LCD_CLKCONTROL_PCD (0x3FF<<0)
517-
#define LCD_CLKCONTROL_BF_N(N) (((N)-1)<<10)
518-
#define LCD_CLKCONTROL_PCD_N(N) ((N)<<0)
519-
520-
/* lcd_pwmdiv */
521-
#define LCD_PWMDIV_EN (1<<31)
522-
#define LCD_PWMDIV_PWMDIV (0x1FFFF<<0)
523-
#define LCD_PWMDIV_PWMDIV_N(N) ((N)<<0)
524-
525-
/* lcd_pwmhi */
526-
#define LCD_PWMHI_PWMHI1 (0xFFFF<<16)
527-
#define LCD_PWMHI_PWMHI0 (0xFFFF<<0)
528-
#define LCD_PWMHI_PWMHI1_N(N) ((N)<<16)
529-
#define LCD_PWMHI_PWMHI0_N(N) ((N)<<0)
530-
531-
/* lcd_hwccon */
532-
#define LCD_HWCCON_EN (1<<0)
533-
534-
/* lcd_cursorpos */
535-
#define LCD_CURSORPOS_HWCXOFF (0x1F<<27)
536-
#define LCD_CURSORPOS_HWCXPOS (0x07FF<<16)
537-
#define LCD_CURSORPOS_HWCYOFF (0x1F<<11)
538-
#define LCD_CURSORPOS_HWCYPOS (0x07FF<<0)
539-
#define LCD_CURSORPOS_HWCXOFF_N(N) ((N)<<27)
540-
#define LCD_CURSORPOS_HWCXPOS_N(N) ((N)<<16)
541-
#define LCD_CURSORPOS_HWCYOFF_N(N) ((N)<<11)
542-
#define LCD_CURSORPOS_HWCYPOS_N(N) ((N)<<0)
543-
544-
/* lcd_cursorcolor */
545-
#define LCD_CURSORCOLOR_HWCA (0xFF<<24)
546-
#define LCD_CURSORCOLOR_HWCR (0xFF<<16)
547-
#define LCD_CURSORCOLOR_HWCG (0xFF<<8)
548-
#define LCD_CURSORCOLOR_HWCB (0xFF<<0)
549-
#define LCD_CURSORCOLOR_HWCA_N(N) ((N)<<24)
550-
#define LCD_CURSORCOLOR_HWCR_N(N) ((N)<<16)
551-
#define LCD_CURSORCOLOR_HWCG_N(N) ((N)<<8)
552-
#define LCD_CURSORCOLOR_HWCB_N(N) ((N)<<0)
553-
554-
/* lcd_fifoctrl */
555-
#define LCD_FIFOCTRL_F3IF (1<<29)
556-
#define LCD_FIFOCTRL_F3REQ (0x1F<<24)
557-
#define LCD_FIFOCTRL_F2IF (1<<29)
558-
#define LCD_FIFOCTRL_F2REQ (0x1F<<16)
559-
#define LCD_FIFOCTRL_F1IF (1<<29)
560-
#define LCD_FIFOCTRL_F1REQ (0x1F<<8)
561-
#define LCD_FIFOCTRL_F0IF (1<<29)
562-
#define LCD_FIFOCTRL_F0REQ (0x1F<<0)
563-
#define LCD_FIFOCTRL_F3REQ_N(N) ((N-1)<<24)
564-
#define LCD_FIFOCTRL_F2REQ_N(N) ((N-1)<<16)
565-
#define LCD_FIFOCTRL_F1REQ_N(N) ((N-1)<<8)
566-
#define LCD_FIFOCTRL_F0REQ_N(N) ((N-1)<<0)
567-
568-
/* lcd_outmask */
569-
#define LCD_OUTMASK_MASK (0x00FFFFFF)
570-
571-
/********************************************************************/
572-
#endif /* _AU1200LCD_H */

‎drivers/video/fbdev/auo_k190x.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,13 +1056,12 @@ int auok190x_common_probe(struct platform_device *pdev,
10561056
/* videomemory handling */
10571057

10581058
videomemorysize = roundup((panel->w * panel->h) * 2, PAGE_SIZE);
1059-
videomemory = vmalloc(videomemorysize);
1059+
videomemory = vzalloc(videomemorysize);
10601060
if (!videomemory) {
10611061
ret = -ENOMEM;
10621062
goto err_irq;
10631063
}
10641064

1065-
memset(videomemory, 0, videomemorysize);
10661065
info->screen_base = (char *)videomemory;
10671066
info->fix.smem_len = videomemorysize;
10681067

0 commit comments

Comments
 (0)