diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-19 01:28:56 +0000 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-22 08:45:12 +0200 |
commit | 4895a2ee5d1bc88d9876c4082062c1cb3df5cdd4 (patch) | |
tree | 9aae9752d8e0e648cca5a4fc44e2361155a4d339 /drivers/usb/gadget/mv_u3d_core.c | |
parent | 54485116cd77b361864c17c40c3280b97b6fbecc (diff) | |
download | op-kernel-dev-4895a2ee5d1bc88d9876c4082062c1cb3df5cdd4.zip op-kernel-dev-4895a2ee5d1bc88d9876c4082062c1cb3df5cdd4.tar.gz |
usb: gadget: mv_u3d: make mv_u3d_pm_ops static
Make mv_u3d_pm_ops static because mv_u3d_pm_ops is not exported.
Also, CONFIG_PM_SLEEP is used to remove unnecessary ifdefs.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/mv_u3d_core.c')
-rw-r--r-- | drivers/usb/gadget/mv_u3d_core.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/usb/gadget/mv_u3d_core.c b/drivers/usb/gadget/mv_u3d_core.c index e91281d..49f9da4 100644 --- a/drivers/usb/gadget/mv_u3d_core.c +++ b/drivers/usb/gadget/mv_u3d_core.c @@ -2002,7 +2002,7 @@ err_pdata: return retval; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int mv_u3d_suspend(struct device *dev) { struct mv_u3d *u3d = dev_get_drvdata(dev); @@ -2045,10 +2045,10 @@ static int mv_u3d_resume(struct device *dev) return 0; } - -SIMPLE_DEV_PM_OPS(mv_u3d_pm_ops, mv_u3d_suspend, mv_u3d_resume); #endif +static SIMPLE_DEV_PM_OPS(mv_u3d_pm_ops, mv_u3d_suspend, mv_u3d_resume); + static void mv_u3d_shutdown(struct platform_device *dev) { struct mv_u3d *u3d = dev_get_drvdata(&dev->dev); @@ -2066,9 +2066,7 @@ static struct platform_driver mv_u3d_driver = { .driver = { .owner = THIS_MODULE, .name = "mv-u3d", -#ifdef CONFIG_PM .pm = &mv_u3d_pm_ops, -#endif }, }; |