phy: tegra: xusb: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Wed, 21 Jul 2021 15:25:42 +0000 (17:25 +0200)
committerVinod Koul <vkoul@kernel.org>
Thu, 22 Jul 2021 09:11:07 +0000 (14:41 +0530)
commitc1302e8ce517ed9c417aa4eb19776df4efbbebf4
tree67f20603eab209cdf8051958158e8fdd11abbbc5
parentbfccd9a71a08627bcccd40277967516ddd9d5db2
phy: tegra: xusb: mark PM functions as __maybe_unused

When these are not referenced, gcc prints a harmless warning:

drivers/phy/tegra/xusb.c:1286:12: error: 'tegra_xusb_padctl_resume_noirq' defined but not used [-Werror=unused-function]
 1286 | static int tegra_xusb_padctl_resume_noirq(struct device *dev)
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/phy/tegra/xusb.c:1276:12: error: 'tegra_xusb_padctl_suspend_noirq' defined but not used [-Werror=unused-function]
 1276 | static int tegra_xusb_padctl_suspend_noirq(struct device *dev)
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes: c545a9056712 ("phy: tegra: xusb: Add sleepwalk and suspend/resume")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210721152550.2976003-1-arnd@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/tegra/xusb.c