diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2005-11-13 19:06:25 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-13 21:14:10 -0500 |
| commit | bca73e4bf8563d83f7856164caa44d5f42e44cca (patch) | |
| tree | ea8c50adca509c8012aed715d578b6c927f9e284 /drivers/net/3c509.c | |
| parent | 95e861db3eaba7bc99f8605db70103ec3d078203 (diff) | |
[PATCH] move pm_register/etc. to CONFIG_PM_LEGACY, pm_legacy.h
Since few people need the support anymore, this moves the legacy
pm_xxx functions to CONFIG_PM_LEGACY, and include/linux/pm_legacy.h.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/net/3c509.c')
| -rw-r--r-- | drivers/net/3c509.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/3c509.c b/drivers/net/3c509.c index 977935a3d898..824e430486c2 100644 --- a/drivers/net/3c509.c +++ b/drivers/net/3c509.c | |||
| @@ -84,6 +84,7 @@ static int max_interrupt_work = 10; | |||
| 84 | #include <linux/netdevice.h> | 84 | #include <linux/netdevice.h> |
| 85 | #include <linux/etherdevice.h> | 85 | #include <linux/etherdevice.h> |
| 86 | #include <linux/pm.h> | 86 | #include <linux/pm.h> |
| 87 | #include <linux/pm_legacy.h> | ||
| 87 | #include <linux/skbuff.h> | 88 | #include <linux/skbuff.h> |
| 88 | #include <linux/delay.h> /* for udelay() */ | 89 | #include <linux/delay.h> /* for udelay() */ |
| 89 | #include <linux/spinlock.h> | 90 | #include <linux/spinlock.h> |
| @@ -173,7 +174,7 @@ struct el3_private { | |||
| 173 | /* skb send-queue */ | 174 | /* skb send-queue */ |
| 174 | int head, size; | 175 | int head, size; |
| 175 | struct sk_buff *queue[SKB_QUEUE_SIZE]; | 176 | struct sk_buff *queue[SKB_QUEUE_SIZE]; |
| 176 | #ifdef CONFIG_PM | 177 | #ifdef CONFIG_PM_LEGACY |
| 177 | struct pm_dev *pmdev; | 178 | struct pm_dev *pmdev; |
| 178 | #endif | 179 | #endif |
| 179 | enum { | 180 | enum { |
| @@ -200,7 +201,7 @@ static void el3_tx_timeout (struct net_device *dev); | |||
| 200 | static void el3_down(struct net_device *dev); | 201 | static void el3_down(struct net_device *dev); |
| 201 | static void el3_up(struct net_device *dev); | 202 | static void el3_up(struct net_device *dev); |
| 202 | static struct ethtool_ops ethtool_ops; | 203 | static struct ethtool_ops ethtool_ops; |
| 203 | #ifdef CONFIG_PM | 204 | #ifdef CONFIG_PM_LEGACY |
| 204 | static int el3_suspend(struct pm_dev *pdev); | 205 | static int el3_suspend(struct pm_dev *pdev); |
| 205 | static int el3_resume(struct pm_dev *pdev); | 206 | static int el3_resume(struct pm_dev *pdev); |
| 206 | static int el3_pm_callback(struct pm_dev *pdev, pm_request_t rqst, void *data); | 207 | static int el3_pm_callback(struct pm_dev *pdev, pm_request_t rqst, void *data); |
| @@ -361,7 +362,7 @@ static void el3_common_remove (struct net_device *dev) | |||
| 361 | struct el3_private *lp = netdev_priv(dev); | 362 | struct el3_private *lp = netdev_priv(dev); |
| 362 | 363 | ||
| 363 | (void) lp; /* Keep gcc quiet... */ | 364 | (void) lp; /* Keep gcc quiet... */ |
| 364 | #ifdef CONFIG_PM | 365 | #ifdef CONFIG_PM_LEGACY |
| 365 | if (lp->pmdev) | 366 | if (lp->pmdev) |
| 366 | pm_unregister(lp->pmdev); | 367 | pm_unregister(lp->pmdev); |
| 367 | #endif | 368 | #endif |
| @@ -571,7 +572,7 @@ no_pnp: | |||
| 571 | if (err) | 572 | if (err) |
| 572 | goto out1; | 573 | goto out1; |
| 573 | 574 | ||
| 574 | #ifdef CONFIG_PM | 575 | #ifdef CONFIG_PM_LEGACY |
| 575 | /* register power management */ | 576 | /* register power management */ |
| 576 | lp->pmdev = pm_register(PM_ISA_DEV, card_idx, el3_pm_callback); | 577 | lp->pmdev = pm_register(PM_ISA_DEV, card_idx, el3_pm_callback); |
| 577 | if (lp->pmdev) { | 578 | if (lp->pmdev) { |
| @@ -1479,7 +1480,7 @@ el3_up(struct net_device *dev) | |||
| 1479 | } | 1480 | } |
| 1480 | 1481 | ||
| 1481 | /* Power Management support functions */ | 1482 | /* Power Management support functions */ |
| 1482 | #ifdef CONFIG_PM | 1483 | #ifdef CONFIG_PM_LEGACY |
| 1483 | 1484 | ||
| 1484 | static int | 1485 | static int |
| 1485 | el3_suspend(struct pm_dev *pdev) | 1486 | el3_suspend(struct pm_dev *pdev) |
| @@ -1548,7 +1549,7 @@ el3_pm_callback(struct pm_dev *pdev, pm_request_t rqst, void *data) | |||
| 1548 | return 0; | 1549 | return 0; |
| 1549 | } | 1550 | } |
| 1550 | 1551 | ||
| 1551 | #endif /* CONFIG_PM */ | 1552 | #endif /* CONFIG_PM_LEGACY */ |
| 1552 | 1553 | ||
| 1553 | /* Parameters that may be passed into the module. */ | 1554 | /* Parameters that may be passed into the module. */ |
| 1554 | static int debug = -1; | 1555 | static int debug = -1; |
