mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
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:
parent
c95036feef
commit
59ed3e02eb
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user