]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/video/kyro/STG4000InitDevice.c
arm: imx6: defconfig: update tx6 defconfigs
[karo-tx-linux.git] / drivers / video / kyro / STG4000InitDevice.c
index ab5285a7f1d6b1de4beff23674b8e93981dc28d7..1d3f2080aa6f4ab8ba8eb1fda6bcfc0fae1317f5 100644 (file)
@@ -247,7 +247,6 @@ int SetCoreClockPLL(volatile STG4000REG __iomem *pSTGReg, struct pci_dev *pDev)
        u32 ulCoreClock;
        u32 tmp;
        u32 ulChipSpeed;
-       u8 rev;
 
        STG_WRITE_REG(IntMask, 0xFFFF);
 
@@ -276,9 +275,9 @@ int SetCoreClockPLL(volatile STG4000REG __iomem *pSTGReg, struct pci_dev *pDev)
                      PMX2_SOFTRESET_ROM_RST);
 
        pci_read_config_word(pDev, PCI_CONFIG_SUBSYS_ID, &sub);
-       pci_read_config_byte(pDev, PCI_REVISION_ID, &rev);
 
-       ulChipSpeed = InitSDRAMRegisters(pSTGReg, (u32)sub, (u32)rev);
+       ulChipSpeed = InitSDRAMRegisters(pSTGReg, (u32)sub,
+                                        (u32)pDev->revision);
 
        if (ulChipSpeed == 0)
                return -EINVAL;