diff options
Diffstat (limited to 'drivers/usb/host/isp116x-hcd.c')
| -rw-r--r-- | drivers/usb/host/isp116x-hcd.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/usb/host/isp116x-hcd.c b/drivers/usb/host/isp116x-hcd.c index e142056b0d2c..642f35068ce2 100644 --- a/drivers/usb/host/isp116x-hcd.c +++ b/drivers/usb/host/isp116x-hcd.c | |||
| @@ -694,7 +694,7 @@ static int balance(struct isp116x *isp116x, u16 period, u16 load) | |||
| 694 | 694 | ||
| 695 | static int isp116x_urb_enqueue(struct usb_hcd *hcd, | 695 | static int isp116x_urb_enqueue(struct usb_hcd *hcd, |
| 696 | struct usb_host_endpoint *hep, struct urb *urb, | 696 | struct usb_host_endpoint *hep, struct urb *urb, |
| 697 | unsigned mem_flags) | 697 | gfp_t mem_flags) |
| 698 | { | 698 | { |
| 699 | struct isp116x *isp116x = hcd_to_isp116x(hcd); | 699 | struct isp116x *isp116x = hcd_to_isp116x(hcd); |
| 700 | struct usb_device *udev = urb->dev; | 700 | struct usb_device *udev = urb->dev; |
| @@ -1774,15 +1774,12 @@ static int __init isp116x_probe(struct device *dev) | |||
| 1774 | /* | 1774 | /* |
| 1775 | Suspend of platform device | 1775 | Suspend of platform device |
| 1776 | */ | 1776 | */ |
| 1777 | static int isp116x_suspend(struct device *dev, pm_message_t state, u32 phase) | 1777 | static int isp116x_suspend(struct device *dev, pm_message_t state) |
| 1778 | { | 1778 | { |
| 1779 | int ret = 0; | 1779 | int ret = 0; |
| 1780 | struct usb_hcd *hcd = dev_get_drvdata(dev); | 1780 | struct usb_hcd *hcd = dev_get_drvdata(dev); |
| 1781 | 1781 | ||
| 1782 | VDBG("%s: state %x, phase %x\n", __func__, state, phase); | 1782 | VDBG("%s: state %x\n", __func__, state); |
| 1783 | |||
| 1784 | if (phase != SUSPEND_DISABLE && phase != SUSPEND_POWER_DOWN) | ||
| 1785 | return 0; | ||
| 1786 | 1783 | ||
| 1787 | ret = usb_suspend_device(hcd->self.root_hub, state); | 1784 | ret = usb_suspend_device(hcd->self.root_hub, state); |
| 1788 | if (!ret) { | 1785 | if (!ret) { |
| @@ -1797,15 +1794,12 @@ static int isp116x_suspend(struct device *dev, pm_message_t state, u32 phase) | |||
| 1797 | /* | 1794 | /* |
| 1798 | Resume platform device | 1795 | Resume platform device |
| 1799 | */ | 1796 | */ |
| 1800 | static int isp116x_resume(struct device *dev, u32 phase) | 1797 | static int isp116x_resume(struct device *dev) |
| 1801 | { | 1798 | { |
| 1802 | int ret = 0; | 1799 | int ret = 0; |
| 1803 | struct usb_hcd *hcd = dev_get_drvdata(dev); | 1800 | struct usb_hcd *hcd = dev_get_drvdata(dev); |
| 1804 | 1801 | ||
| 1805 | VDBG("%s: state %x, phase %x\n", __func__, dev->power.power_state, | 1802 | VDBG("%s: state %x\n", __func__, dev->power.power_state); |
| 1806 | phase); | ||
| 1807 | if (phase != RESUME_POWER_ON) | ||
| 1808 | return 0; | ||
| 1809 | 1803 | ||
| 1810 | ret = usb_resume_device(hcd->self.root_hub); | 1804 | ret = usb_resume_device(hcd->self.root_hub); |
| 1811 | if (!ret) { | 1805 | if (!ret) { |
