diff options
Diffstat (limited to 'drivers/net/typhoon.c')
-rw-r--r-- | drivers/net/typhoon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/typhoon.c b/drivers/net/typhoon.c index b0d337f7f545..8f3392989a06 100644 --- a/drivers/net/typhoon.c +++ b/drivers/net/typhoon.c | |||
@@ -1906,7 +1906,7 @@ typhoon_sleep(struct typhoon *tp, pci_power_t state, u16 events) | |||
1906 | */ | 1906 | */ |
1907 | netif_carrier_off(tp->dev); | 1907 | netif_carrier_off(tp->dev); |
1908 | 1908 | ||
1909 | pci_enable_wake(tp->pdev, state, 1); | 1909 | pci_enable_wake(tp->pdev, pci_choose_state(pdev, state), 1); |
1910 | pci_disable_device(pdev); | 1910 | pci_disable_device(pdev); |
1911 | return pci_set_power_state(pdev, pci_choose_state(pdev, state)); | 1911 | return pci_set_power_state(pdev, pci_choose_state(pdev, state)); |
1912 | } | 1912 | } |
@@ -2287,7 +2287,7 @@ need_resume: | |||
2287 | } | 2287 | } |
2288 | 2288 | ||
2289 | static int | 2289 | static int |
2290 | typhoon_enable_wake(struct pci_dev *pdev, u32 state, int enable) | 2290 | typhoon_enable_wake(struct pci_dev *pdev, pci_power_t state, int enable) |
2291 | { | 2291 | { |
2292 | return pci_enable_wake(pdev, state, enable); | 2292 | return pci_enable_wake(pdev, state, enable); |
2293 | } | 2293 | } |