diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2021-02-17 22:23:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-17 13:33:27 -0800 |
commit | 80a2a40bd29646d6d411be9b4f06e10282844a74 (patch) | |
tree | 93d5f1aca9b5945ecf26c801a56ec82ebd37d886 /drivers/net/ethernet/realtek | |
parent | 32511f8e498045a82f603454b21b34ad892a79c6 (diff) | |
download | lwn-80a2a40bd29646d6d411be9b4f06e10282844a74.tar.gz lwn-80a2a40bd29646d6d411be9b4f06e10282844a74.zip |
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/ethernet/realtek')
-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); |