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

Commit 1e32cda8 authored by Jingoo Han's avatar Jingoo Han Committed by Felipe Balbi
Browse files

usb: phy: am335x: Use SIMPLE_DEV_PM_OPS macro



Use SIMPLE_DEV_PM_OPS macro and remove DEV_PM_OPS macro, in order
to make the code simpler.

Acked-by: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 909346a8
Loading
Loading
Loading
Loading
+3 −9
Original line number Original line Diff line number Diff line
@@ -122,16 +122,10 @@ 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)
#else
#define DEV_PM_OPS     NULL
#endif
#endif


static SIMPLE_DEV_PM_OPS(am335x_pm_ops, am335x_phy_suspend, 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" },
	{ }
	{ }
@@ -144,7 +138,7 @@ static struct platform_driver am335x_phy_driver = {
	.driver         = {
	.driver         = {
		.name   = "am335x-phy-driver",
		.name   = "am335x-phy-driver",
		.owner  = THIS_MODULE,
		.owner  = THIS_MODULE,
		.pm = DEV_PM_OPS,
		.pm = &am335x_pm_ops,
		.of_match_table = am335x_phy_ids,
		.of_match_table = am335x_phy_ids,
	},
	},
};
};