net: alx: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
authorChristoph Heiss <christoph@c8h4.io>
Sat, 17 Dec 2022 10:40:24 +0000 (11:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Dec 2022 09:23:02 +0000 (09:23 +0000)
commit1d330d4fa8ba5833ff1d9be6e96b72ebc1fa236f
treec6e2927fb9b0a24721a199980b7bb77eb0774d43
parent7e68dd7d07a28faa2e6574dd6b9dbd90cdeaae91
net: alx: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()

Using these macros allows to remove an #ifdef-guard on CONFIG_PM_SLEEP.
No functional changes.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/alx/main.c