phy: rockchip-inno-usb2: fix compile warning when !PM_SLEEP

When CONFIG_PM_SLEEP is disabled, we get a warning about
unused functions:

drivers/phy/rockchip/phy-rockchip-inno-usb2.c:1828:12: warning:
'rockchip_usb2phy_low_power_enable' defined but not used

Marking it as __maybe_unused avoids the warning without introducing
an ugly #ifdef.

Change-Id: I644b00eb2b30d9e4b63da46b7f387a7571b0f103
Signed-off-by: William Wu <william.wu@rock-chips.com>
This commit is contained in:
William Wu 2018-05-17 11:49:07 +08:00 committed by Tao Huang
parent c95036feef
commit 59ed3e02eb

View File

@ -1825,9 +1825,10 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev)
return ret;
}
static int rockchip_usb2phy_low_power_enable(struct rockchip_usb2phy *rphy,
struct rockchip_usb2phy_port *rport,
bool value)
static int __maybe_unused
rockchip_usb2phy_low_power_enable(struct rockchip_usb2phy *rphy,
struct rockchip_usb2phy_port *rport,
bool value)
{
int ret = 0;