aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/musb
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-06-27 08:57:12 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-01 17:31:15 -0400
commit8220796df85d58a445863424b7b2053d4741e931 (patch)
treec0078f842d3295da15ea5e4a29c8f4c8df4321aa /drivers/usb/musb
parentded1ddbf92ee2c8f04af7fe805e1074be5d41f7f (diff)
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: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/musb')
-rw-r--r--drivers/usb/musb/musb_core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index e2ab4521985..c6ab321416b 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -2286,9 +2286,8 @@ static void musb_restore_context(struct musb *musb)
2286 2286
2287static int musb_suspend(struct device *dev) 2287static int musb_suspend(struct device *dev)
2288{ 2288{
2289 struct platform_device *pdev = to_platform_device(dev); 2289 struct musb *musb = dev_to_musb(dev);
2290 unsigned long flags; 2290 unsigned long flags;
2291 struct musb *musb = dev_to_musb(&pdev->dev);
2292 2291
2293 spin_lock_irqsave(&musb->lock, flags); 2292 spin_lock_irqsave(&musb->lock, flags);
2294 2293
@@ -2310,8 +2309,7 @@ static int musb_suspend(struct device *dev)
2310 2309
2311static int musb_resume_noirq(struct device *dev) 2310static int musb_resume_noirq(struct device *dev)
2312{ 2311{
2313 struct platform_device *pdev = to_platform_device(dev); 2312 struct musb *musb = dev_to_musb(dev);
2314 struct musb *musb = dev_to_musb(&pdev->dev);
2315 2313
2316 musb_restore_context(musb); 2314 musb_restore_context(musb);
2317 2315