浏览代码

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>
Felipe Balbi 11 年之前
父节点
当前提交
515610011e
共有 1 个文件被更改,包括 5 次插入6 次删除
  1. 5 6
      drivers/usb/phy/phy-am335x.c

+ 5 - 6
drivers/usb/phy/phy-am335x.c

@@ -122,17 +122,16 @@ static int am335x_phy_resume(struct device *dev)
 
 
 	return 0;
 	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)
 #define DEV_PM_OPS     (&am335x_pm_ops)
 #else
 #else
 #define DEV_PM_OPS     NULL
 #define DEV_PM_OPS     NULL
 #endif
 #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[] = {
 static const struct of_device_id am335x_phy_ids[] = {
 	{ .compatible = "ti,am335x-usb-phy" },
 	{ .compatible = "ti,am335x-usb-phy" },
 	{ }
 	{ }