drivers/net: fix build warnings with CONFIG_PM_SLEEP disabled