OSDN Git Service

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)
commit454b768f9ba653d65968c1ef29d2d4aa477147ea
treea82dbcc57752a2f72e6fa8a664412df241d93052
parent3bd53ea02d77917c2314ec7be9e2d05be22f87d3
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