diff options
author | Arnd Bergmann <arnd@arndb.de> | 2022-12-15 17:39:05 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-12-17 06:13:52 +0100 |
commit | 078838f5b9c9203e94d7724f997392ea8012ea6a (patch) | |
tree | 39bbe7c42c53e28c8ee270ffb0c7ca7a62659c0e /net | |
parent | Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf... (diff) | |
download | linux-078838f5b9c9203e94d7724f997392ea8012ea6a.tar.xz linux-078838f5b9c9203e94d7724f997392ea8012ea6a.zip |
net: ethernet: ti: am65-cpsw: fix CONFIG_PM #ifdef
The #ifdef check is incorrect and leads to a warning:
drivers/net/ethernet/ti/am65-cpsw-nuss.c:1679:13: error: 'am65_cpsw_nuss_remove_rx_chns' defined but not used [-Werror=unused-function]
1679 | static void am65_cpsw_nuss_remove_rx_chns(void *data)
It's better to remove the #ifdef here and use the modern
SYSTEM_SLEEP_PM_OPS() macro instead.
Fixes: 24bc19b05f1f ("net: ethernet: ti: am65-cpsw: Add suspend/resume support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Link: https://lore.kernel.org/r/20221215163918.611609-1-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions