omap2430.c (afb76df140823c57738598a876cd1d6568cd57c7) | omap2430.c (c04352a590538123f8c93bd87ef1d4bb9e3a64c7) |
---|---|
1/* 2 * Copyright (C) 2005-2007 by Texas Instruments 3 * Some code has been taken from tusb6010.c 4 * Copyrights for that are attributable to: 5 * Copyright (C) 2006 Nokia Corporation 6 * Tony Lindgren <tony@atomide.com> 7 * 8 * This file is part of the Inventra Controller Driver for Linux. --- 319 unchanged lines hidden (view full) --- 328 musb->nb.notifier_call = musb_otg_notifications; 329 status = usb_register_notifier(musb->xceiv, &musb->nb); 330 331 if (status) 332 dev_dbg(musb->controller, "notification register failed\n"); 333 334 setup_timer(&musb_idle_timer, musb_do_idle, (unsigned long) musb); 335 | 1/* 2 * Copyright (C) 2005-2007 by Texas Instruments 3 * Some code has been taken from tusb6010.c 4 * Copyrights for that are attributable to: 5 * Copyright (C) 2006 Nokia Corporation 6 * Tony Lindgren <tony@atomide.com> 7 * 8 * This file is part of the Inventra Controller Driver for Linux. --- 319 unchanged lines hidden (view full) --- 328 musb->nb.notifier_call = musb_otg_notifications; 329 status = usb_register_notifier(musb->xceiv, &musb->nb); 330 331 if (status) 332 dev_dbg(musb->controller, "notification register failed\n"); 333 334 setup_timer(&musb_idle_timer, musb_do_idle, (unsigned long) musb); 335 |
336 pm_runtime_put_noidle(musb->controller); |
|
336 return 0; 337 338err1: 339 return status; 340} 341 342static void omap2430_musb_enable(struct musb *musb) 343{ --- 129 unchanged lines hidden (view full) --- 473} 474 475static int __devexit omap2430_remove(struct platform_device *pdev) 476{ 477 struct omap2430_glue *glue = platform_get_drvdata(pdev); 478 479 platform_device_del(glue->musb); 480 platform_device_put(glue->musb); | 337 return 0; 338 339err1: 340 return status; 341} 342 343static void omap2430_musb_enable(struct musb *musb) 344{ --- 129 unchanged lines hidden (view full) --- 474} 475 476static int __devexit omap2430_remove(struct platform_device *pdev) 477{ 478 struct omap2430_glue *glue = platform_get_drvdata(pdev); 479 480 platform_device_del(glue->musb); 481 platform_device_put(glue->musb); |
481 pm_runtime_put(&pdev->dev); | |
482 kfree(glue); 483 484 return 0; 485} 486 487#ifdef CONFIG_PM 488 489static int omap2430_runtime_suspend(struct device *dev) --- 65 unchanged lines hidden --- | 482 kfree(glue); 483 484 return 0; 485} 486 487#ifdef CONFIG_PM 488 489static int omap2430_runtime_suspend(struct device *dev) --- 65 unchanged lines hidden --- |