diff options
author | Michel Lespinasse <walken@google.com> | 2011-03-06 17:14:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-14 22:22:01 +0100 |
commit | 942527634e201883b39fe0c97a1e47db7a026f91 (patch) | |
tree | d867641098f29a060d8025deffdf3bec269a1d54 /drivers/net/sky2.c | |
parent | net: sh_eth: add set_mdio_gate in bb_info (diff) | |
download | linux-942527634e201883b39fe0c97a1e47db7a026f91.tar.xz linux-942527634e201883b39fe0c97a1e47db7a026f91.zip |
drivers/net: fix build warnings with CONFIG_PM_SLEEP disabled
This fixes a couple of build warnings when CONFIG_PM is enabled but
CONFIG_PM_SLEEP is disabled. Applies on top of v2.6.38-rc7 - I know it's
late, but it would be great if v2.6.38 could compile without warnings!
Signed-off-by: Michel Lespinasse <walken@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r-- | drivers/net/sky2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 7d85a38377a1..2a91868788f7 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c @@ -4983,7 +4983,7 @@ static int sky2_suspend(struct device *dev) return 0; } -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int sky2_resume(struct device *dev) { struct pci_dev *pdev = to_pci_dev(dev); |