]> git.hungrycats.org Git - linux/commit
r8169: use new PM macros
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 24 Jan 2022 21:17:17 +0000 (22:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:22:01 +0000 (13:22 +0100)
commitda6cabc1981ed29529aeef6d93b5727474fa81cc
tree4be4eae6d1b1abdb56adedf3b9eb3326b62e1b0b
parentb7f3fac6d30116f346c1f1ea5981a1993611ea5a
r8169: use new PM macros

commit 8fe6e670640e79adbe6fff5438cd324e468c280e upstream.

This is based on series [0] that extended the PM core. Now the compiler
can see the PM callbacks also on systems not defining CONFIG_PM.
The optimizer will remove the functions then in this case.

[0] https://lore.kernel.org/netdev/20211207002102.26414-1-paul@crapouillou.net/

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/realtek/r8169_main.c