diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-02-18 00:23:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-18 00:33:27 +0300 |
commit | 80a2a40bd29646d6d411be9b4f06e10282844a74 (patch) | |
tree | 93d5f1aca9b5945ecf26c801a56ec82ebd37d886 /drivers/net | |
parent | 32511f8e498045a82f603454b21b34ad892a79c6 (diff) | |
download | linux-80a2a40bd29646d6d411be9b4f06e10282844a74.tar.xz |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169_main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index cbc30df4e08a..0a20dae32184 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -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); |