Lines 3310-3319
static void __devexit skge_remove(struct
Link Here
|
3310 |
} |
3310 |
} |
3311 |
|
3311 |
|
3312 |
#ifdef CONFIG_PM |
3312 |
#ifdef CONFIG_PM |
3313 |
static int skge_suspend(struct pci_dev *pdev, u32 state) |
3313 |
static int skge_suspend(struct pci_dev *pdev, pm_message_t pmsg) |
3314 |
{ |
3314 |
{ |
3315 |
struct skge_hw *hw = pci_get_drvdata(pdev); |
3315 |
struct skge_hw *hw = pci_get_drvdata(pdev); |
3316 |
int i, wol = 0; |
3316 |
int i, wol = 0; |
|
|
3317 |
pci_power_t state; |
3317 |
|
3318 |
|
3318 |
for(i = 0; i < 2; i++) { |
3319 |
for(i = 0; i < 2; i++) { |
3319 |
struct net_device *dev = hw->dev[i]; |
3320 |
struct net_device *dev = hw->dev[i]; |
Lines 3329-3338
static int skge_suspend(struct pci_dev *
Link Here
|
3329 |
} |
3330 |
} |
3330 |
} |
3331 |
} |
3331 |
|
3332 |
|
|
|
3333 |
state = pci_choose_state(pdev, pmsg); |
3334 |
|
3332 |
pci_save_state(pdev); |
3335 |
pci_save_state(pdev); |
3333 |
pci_enable_wake(pdev, state, wol); |
3336 |
pci_enable_wake(pdev, state, wol); |
3334 |
pci_disable_device(pdev); |
3337 |
pci_disable_device(pdev); |
3335 |
pci_set_power_state(pdev, pci_choose_state(pdev, state)); |
3338 |
pci_set_power_state(pdev, state); |
3336 |
|
3339 |
|
3337 |
return 0; |
3340 |
return 0; |
3338 |
} |
3341 |
} |