staging: xgifb: Initialize Part0Port
authorLubomir Rintel <lkundrak@v3.sk>
Sun, 18 May 2014 10:55:14 +0000 (12:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2014 17:03:31 +0000 (10:03 -0700)
It was left uninitialized, likely overseen, in this commit:
56810a92c689c6 ("staging: xgifb: use XGIRegInit()
Avoid copy-paste and use XGIRegInit() to initialize registers addresses.")

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main_26.c

index a62d4dd4ce82608cc6095931418897d261ce502b..f82f0574bbdca7988f176da3709af3d8d058c0a0 100644 (file)
@@ -218,6 +218,7 @@ void XGIRegInit(struct vb_device_info *XGI_Pr, unsigned long BaseAddr)
        XGI_Pr->P3c8 = BaseAddr + 0x18;
        XGI_Pr->P3c9 = BaseAddr + 0x19;
        XGI_Pr->P3da = BaseAddr + 0x2A;
+       XGI_Pr->Part0Port = BaseAddr + XGI_CRT2_PORT_00;
        /* Digital video interface registers (LCD) */
        XGI_Pr->Part1Port = BaseAddr + SIS_CRT2_PORT_04;
        /* 301 TV Encoder registers */