Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51561001 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

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: default avatarFelipe Balbi <balbi@ti.com>
parent 23db9fd2
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -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" },
	{ }