mt76: mt7663s: enable runtime-pm

Allow the user to enable runtime-pm for mt7663s driver

Signed-off-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Lorenzo Bianconi
2021-06-18 17:19:44 +02:00
committed by Felix Fietkau
parent 529d55a790
commit ef44ff116e
3 changed files with 13 additions and 6 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ int mt76_connac_pm_wake(struct mt76_phy *phy, struct mt76_connac_pm *pm)
if (!pm->enable)
return 0;
if (!mt76_is_mmio(dev))
if (mt76_is_usb(dev))
return 0;
cancel_delayed_work_sync(&pm->ps_work);
@@ -37,7 +37,7 @@ void mt76_connac_power_save_sched(struct mt76_phy *phy,
{
struct mt76_dev *dev = phy->dev;
if (!mt76_is_mmio(dev))
if (mt76_is_usb(dev))
return;
if (!pm->enable)