aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2013-09-30 15:02:09 -0400
committerFelipe Balbi <balbi@ti.com>2013-10-02 09:22:19 -0400
commita89adb098ac33934b6b0a773853a12220376d600 (patch)
tree1810dbbf89761665d9e85687be2982a381974f06 /drivers/usb/musb
parent0967313b6fe14f34d87b1ef278f7771ed8900eb1 (diff)
usb: musb: ux500: use SIMPLE_DEV_PM_OPS
This removes the DEV_PM_OPS macro and brings this file in line with the other musb platform drivers. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/ux500.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/usb/musb/ux500.c b/drivers/usb/musb/ux500.c
index 59256b12f746..f483d1924c28 100644
--- a/drivers/usb/musb/ux500.c
+++ b/drivers/usb/musb/ux500.c
@@ -376,17 +376,10 @@ static int ux500_resume(struct device *dev)
376 376
377 return 0; 377 return 0;
378} 378}
379
380static const struct dev_pm_ops ux500_pm_ops = {
381 .suspend = ux500_suspend,
382 .resume = ux500_resume,
383};
384
385#define DEV_PM_OPS (&ux500_pm_ops)
386#else
387#define DEV_PM_OPS NULL
388#endif 379#endif
389 380
381static SIMPLE_DEV_PM_OPS(ux500_pm_ops, ux500_suspend, ux500_resume);
382
390static const struct of_device_id ux500_match[] = { 383static const struct of_device_id ux500_match[] = {
391 { .compatible = "stericsson,db8500-musb", }, 384 { .compatible = "stericsson,db8500-musb", },
392 {} 385 {}
@@ -397,7 +390,7 @@ static struct platform_driver ux500_driver = {
397 .remove = ux500_remove, 390 .remove = ux500_remove,
398 .driver = { 391 .driver = {
399 .name = "musb-ux500", 392 .name = "musb-ux500",
400 .pm = DEV_PM_OPS, 393 .pm = &ux500_pm_ops,
401 .of_match_table = ux500_match, 394 .of_match_table = ux500_match,
402 }, 395 },
403}; 396};