Commit 8220796d authored by Felipe Balbi's avatar Felipe Balbi Committed by Greg Kroah-Hartman

usb: musb: no need to access platform_device

dev_get_drvdata() is exactly the same as
platform_get_drvdata(). Drop that useless
access to the platform device.
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ded1ddbf
...@@ -2286,9 +2286,8 @@ static void musb_restore_context(struct musb *musb) ...@@ -2286,9 +2286,8 @@ static void musb_restore_context(struct musb *musb)
static int musb_suspend(struct device *dev) static int musb_suspend(struct device *dev)
{ {
struct platform_device *pdev = to_platform_device(dev); struct musb *musb = dev_to_musb(dev);
unsigned long flags; unsigned long flags;
struct musb *musb = dev_to_musb(&pdev->dev);
spin_lock_irqsave(&musb->lock, flags); spin_lock_irqsave(&musb->lock, flags);
...@@ -2310,8 +2309,7 @@ static int musb_suspend(struct device *dev) ...@@ -2310,8 +2309,7 @@ static int musb_suspend(struct device *dev)
static int musb_resume_noirq(struct device *dev) static int musb_resume_noirq(struct device *dev)
{ {
struct platform_device *pdev = to_platform_device(dev); struct musb *musb = dev_to_musb(dev);
struct musb *musb = dev_to_musb(&pdev->dev);
musb_restore_context(musb); musb_restore_context(musb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment