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>
This commit is contained in:
parent
0967313b6f
commit
a89adb098a
1 changed files with 3 additions and 10 deletions
|
@ -376,17 +376,10 @@ static int ux500_resume(struct device *dev)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct dev_pm_ops ux500_pm_ops = {
|
|
||||||
.suspend = ux500_suspend,
|
|
||||||
.resume = ux500_resume,
|
|
||||||
};
|
|
||||||
|
|
||||||
#define DEV_PM_OPS (&ux500_pm_ops)
|
|
||||||
#else
|
|
||||||
#define DEV_PM_OPS NULL
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static SIMPLE_DEV_PM_OPS(ux500_pm_ops, ux500_suspend, ux500_resume);
|
||||||
|
|
||||||
static const struct of_device_id ux500_match[] = {
|
static const struct of_device_id ux500_match[] = {
|
||||||
{ .compatible = "stericsson,db8500-musb", },
|
{ .compatible = "stericsson,db8500-musb", },
|
||||||
{}
|
{}
|
||||||
|
@ -397,7 +390,7 @@ static struct platform_driver ux500_driver = {
|
||||||
.remove = ux500_remove,
|
.remove = ux500_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "musb-ux500",
|
.name = "musb-ux500",
|
||||||
.pm = DEV_PM_OPS,
|
.pm = &ux500_pm_ops,
|
||||||
.of_match_table = ux500_match,
|
.of_match_table = ux500_match,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue