[openEuler-5.10 06/21] net: stmmac: platform: fix build error with !CONFIG_PM_SLEEP