]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt7921: Let PCI core handle power state and use pm_sleep_ptr()
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 5 Jul 2022 14:23:04 +0000 (22:23 +0800)
committerFelix Fietkau <nbd@nbd.name>
Mon, 11 Jul 2022 11:40:03 +0000 (13:40 +0200)
commit71792ca8bddf29e49e0b61fac0db4805a8e8da50
treea82dbcc57752a2f72e6fa8a664412df241d93052
parenta227fe8bf041c0b599640977c7eb9cc844a3e439
mt76: mt7921: Let PCI core handle power state and use pm_sleep_ptr()

PCI power state and wakeup are already handled by PCI core, so it's not
necessary to handle them in the driver.

Also switch to use pm_sleep_ptr() to remove #ifdef guard.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/pci.c