]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/phy/phy-sun4i-usb.c
Merge branch 'drm-fixes-4.9' of git://people.freedesktop.org/~agd5f/linux into drm...
[karo-tx-linux.git] / drivers / phy / phy-sun4i-usb.c
index b9342a2af7b3666f86471d649bd134a4baa9ff13..fec34f5213c46739b5231f34bfe628731c231a9a 100644 (file)
@@ -264,7 +264,7 @@ static int sun4i_usb_phy_init(struct phy *_phy)
                return ret;
        }
 
-       if (data->cfg->enable_pmu_unk1) {
+       if (phy->pmu && data->cfg->enable_pmu_unk1) {
                val = readl(phy->pmu + REG_PMU_UNK1);
                writel(val & ~2, phy->pmu + REG_PMU_UNK1);
        }