]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ethernet/sun/sungem.c
Merge remote-tracking branch 'regulator/topic/drivers' into regulator-next
[~andy/linux] / drivers / net / ethernet / sun / sungem.c
index 558409ff40582fa9f5cd1ae91248f9d214c51d3e..4ba969096717a7ce59e55eaa97f40bdc974ef8b2 100644 (file)
@@ -2339,7 +2339,7 @@ static int gem_suspend(struct pci_dev *pdev, pm_message_t state)
        netif_device_detach(dev);
 
        /* Switch off chip, remember WOL setting */
-       gp->asleep_wol = gp->wake_on_lan;
+       gp->asleep_wol = !!gp->wake_on_lan;
        gem_do_stop(dev, gp->asleep_wol);
 
        /* Unlock the network stack */