Commit 80a2a40b authored by Heiner Kallweit's avatar Heiner Kallweit Committed by David S. Miller

r8169: use macro pm_ptr

Use macro pm_ptr(), this helps to avoid some ifdeffery.
Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 32511f8e
...@@ -5414,9 +5414,7 @@ static struct pci_driver rtl8169_pci_driver = { ...@@ -5414,9 +5414,7 @@ static struct pci_driver rtl8169_pci_driver = {
.probe = rtl_init_one, .probe = rtl_init_one,
.remove = rtl_remove_one, .remove = rtl_remove_one,
.shutdown = rtl_shutdown, .shutdown = rtl_shutdown,
#ifdef CONFIG_PM .driver.pm = pm_ptr(&rtl8169_pm_ops),
.driver.pm = &rtl8169_pm_ops,
#endif
}; };
module_pci_driver(rtl8169_pci_driver); module_pci_driver(rtl8169_pci_driver);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment