r8169: use macro pm_ptr

Use macro pm_ptr(), this helps to avoid some ifdeffery.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Heiner Kallweit 2021-02-17 22:23:58 +01:00 committed by David S. Miller
parent 32511f8e49
commit 80a2a40bd2
1 changed files with 1 additions and 3 deletions

View File

@ -5414,9 +5414,7 @@ static struct pci_driver rtl8169_pci_driver = {
.probe = rtl_init_one,
.remove = rtl_remove_one,
.shutdown = rtl_shutdown,
#ifdef CONFIG_PM
.driver.pm = &rtl8169_pm_ops,
#endif
.driver.pm = pm_ptr(&rtl8169_pm_ops),
};
module_pci_driver(rtl8169_pci_driver);