Skip to content

Commit

Permalink
USB: OHCI: sm501: fix build failure after ohci_finish_controller_resu…
Browse files Browse the repository at this point in the history
…me removal

Commit cfa49b4 (USB: ohci: merge ohci_finish_controller_resume with
ohci_resume) merged ohci_finish_controller_resume with ohci_resume but forgot
to update the ohci-sm501 driver accordingly, thus causing the folllowing build
failure:

drivers/usb/host/ohci-sm501.c: In function 'ohci_sm501_resume':
drivers/usb/host/ohci-sm501.c:241:2: error: implicit declaration of function
'ohci_finish_controller_resume' [-Werror=implicit-function-declaration]

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Florian Fainelli authored and Greg Kroah-Hartman committed Oct 23, 2012
1 parent 5843de3 commit 068b054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/ohci-sm501.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ static int ohci_sm501_resume(struct platform_device *pdev)
ohci->next_statechange = jiffies;

sm501_unit_power(dev->parent, SM501_GATE_USB_HOST, 1);
ohci_finish_controller_resume(hcd);
ohci_resume(hcd, false);
return 0;
}
#else
Expand Down

0 comments on commit 068b054

Please sign in to comment.