mirror of https://gitee.com/openkylin/linux.git
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:
parent
32511f8e49
commit
80a2a40bd2
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue