Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46661
b: refs/heads/master
c: 6dde896
h: refs/heads/master
i:
  46659: a91b29c
v: v3
  • Loading branch information
Marc Pignat authored and Greg Kroah-Hartman committed Feb 7, 2007
1 parent 64a562e commit fde5da2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f3f4906516a084bbd9aa3da7592e6b029fe78f5b
refs/heads/master: 6dde896e4eac122f388263f0097b691acdc0396f
8 changes: 5 additions & 3 deletions trunk/drivers/usb/host/ohci-at91.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ static int usb_hcd_at91_remove(struct usb_hcd *hcd,
at91_stop_hc(pdev);
iounmap(hcd->regs);
release_mem_region(hcd->rsrc_start, hcd->rsrc_len);
disable_irq_wake(hcd->irq);

clk_put(fclk);
clk_put(iclk);
Expand Down Expand Up @@ -271,8 +270,6 @@ ohci_hcd_at91_drv_suspend(struct platform_device *pdev, pm_message_t mesg)

if (device_may_wakeup(&pdev->dev))
enable_irq_wake(hcd->irq);
else
disable_irq_wake(hcd->irq);

/*
* The integrated transceivers seem unable to notice disconnect,
Expand All @@ -293,6 +290,11 @@ ohci_hcd_at91_drv_suspend(struct platform_device *pdev, pm_message_t mesg)

static int ohci_hcd_at91_drv_resume(struct platform_device *pdev)
{
struct usb_hcd *hcd = platform_get_drvdata(pdev);

if (device_may_wakeup(&pdev->dev))
disable_irq_wake(hcd->irq);

if (!clocked) {
clk_enable(iclk);
clk_enable(fclk);
Expand Down

0 comments on commit fde5da2

Please sign in to comment.