summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-12-20 15:04:09 -0600
committerFelipe Balbi <balbi@ti.com>2013-12-20 15:04:09 -0600
commit515610011edbec518e26b8222a16886cb66a4946 (patch)
treee29379364eaca227f0ca8f72293fae39d06ce0ad /drivers/usb/phy
parent23db9fd238d6ca5aa165900bf14fb42e3e2d0815 (diff)
usb: phy: am335x: fix randconfig errors
by using SET_SYSTEM_SLEEP_PM_OPS, we will make sure that we don't use undefined functions. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy')
-rw-r--r--drivers/usb/phy/phy-am335x.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/usb/phy/phy-am335x.c b/drivers/usb/phy/phy-am335x.c
index e8088fa7f05..12fc3468a01 100644
--- a/drivers/usb/phy/phy-am335x.c
+++ b/drivers/usb/phy/phy-am335x.c
@@ -122,17 +122,16 @@ static int am335x_phy_resume(struct device *dev)
return 0;
}
+
+static const struct dev_pm_ops am335x_pm_ops = {
+ SET_SYSTEM_SLEEP_PM_OPS(am335x_phy_suspend, am335x_phy_resume)
+};
+
#define DEV_PM_OPS (&am335x_pm_ops)
#else
#define DEV_PM_OPS NULL
#endif
-
-static const struct dev_pm_ops am335x_pm_ops = {
- .suspend = am335x_phy_suspend,
- .resume = am335x_phy_resume,
-};
-
static const struct of_device_id am335x_phy_ids[] = {
{ .compatible = "ti,am335x-usb-phy" },
{ }