diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-07-08 07:51:34 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-07-10 09:39:20 -0400 |
commit | 1e32cda86d360ade35d2b3328b46ecf6ef5836db (patch) | |
tree | cfc510bea57c7b805d43992895e61027d4c92208 /drivers/usb | |
parent | 909346a819c5b81420d861bd53abd1140b26104e (diff) |
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: Roger Quadros <rogerq@ti.com>
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/phy/phy-am335x.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/usb/phy/phy-am335x.c b/drivers/usb/phy/phy-am335x.c index 585e50cb1980..b70e05537180 100644 --- a/drivers/usb/phy/phy-am335x.c +++ b/drivers/usb/phy/phy-am335x.c | |||
@@ -122,16 +122,10 @@ static int am335x_phy_resume(struct device *dev) | |||
122 | 122 | ||
123 | return 0; | 123 | return 0; |
124 | } | 124 | } |
125 | |||
126 | static const struct dev_pm_ops am335x_pm_ops = { | ||
127 | SET_SYSTEM_SLEEP_PM_OPS(am335x_phy_suspend, am335x_phy_resume) | ||
128 | }; | ||
129 | |||
130 | #define DEV_PM_OPS (&am335x_pm_ops) | ||
131 | #else | ||
132 | #define DEV_PM_OPS NULL | ||
133 | #endif | 125 | #endif |
134 | 126 | ||
127 | static SIMPLE_DEV_PM_OPS(am335x_pm_ops, am335x_phy_suspend, am335x_phy_resume); | ||
128 | |||
135 | static const struct of_device_id am335x_phy_ids[] = { | 129 | static const struct of_device_id am335x_phy_ids[] = { |
136 | { .compatible = "ti,am335x-usb-phy" }, | 130 | { .compatible = "ti,am335x-usb-phy" }, |
137 | { } | 131 | { } |
@@ -144,7 +138,7 @@ static struct platform_driver am335x_phy_driver = { | |||
144 | .driver = { | 138 | .driver = { |
145 | .name = "am335x-phy-driver", | 139 | .name = "am335x-phy-driver", |
146 | .owner = THIS_MODULE, | 140 | .owner = THIS_MODULE, |
147 | .pm = DEV_PM_OPS, | 141 | .pm = &am335x_pm_ops, |
148 | .of_match_table = am335x_phy_ids, | 142 | .of_match_table = am335x_phy_ids, |
149 | }, | 143 | }, |
150 | }; | 144 | }; |