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

Commit 4895a2ee authored by Jingoo Han's avatar Jingoo Han Committed by Felipe Balbi
Browse files

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 54485116
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -2002,7 +2002,7 @@ static int mv_u3d_probe(struct platform_device *dev)
	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
	},
};