diff options
author | Pavel Machek <pavel@ucw.cz> | 2005-04-16 18:25:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:25:25 -0400 |
commit | 05adc3b7458e97a1d0180828000207a403083389 (patch) | |
tree | b7ec16681719bfd3caac350a750b50ed5a4abf50 /drivers | |
parent | 4fd416c14c583ee6ff1e2b17ab05e7e02e170e4c (diff) |
[PATCH] u32 vs. pm_message_t fixes for drivers/net
This fixes remaining u32s in drivers/ net.
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/8139cp.c | 2 | ||||
-rw-r--r-- | drivers/net/bmac.c | 2 | ||||
-rw-r--r-- | drivers/net/irda/sa1100_ir.c | 2 | ||||
-rw-r--r-- | drivers/net/irda/vlsi_ir.c | 2 | ||||
-rw-r--r-- | drivers/net/pci-skeleton.c | 2 | ||||
-rw-r--r-- | drivers/net/r8169.c | 2 | ||||
-rw-r--r-- | drivers/net/smc91x.c | 2 | ||||
-rw-r--r-- | drivers/net/tulip/de2104x.c | 2 | ||||
-rw-r--r-- | drivers/net/tulip/winbond-840.c | 2 | ||||
-rw-r--r-- | drivers/net/tulip/xircom_tulip_cb.c | 2 | ||||
-rw-r--r-- | drivers/net/typhoon.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/airo.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/airport.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco_pci.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/prism54/islpci_hotplug.c | 4 |
15 files changed, 19 insertions, 19 deletions
diff --git a/drivers/net/8139cp.c b/drivers/net/8139cp.c index 58c6a85c3aa2..d639cb8dc461 100644 --- a/drivers/net/8139cp.c +++ b/drivers/net/8139cp.c | |||
@@ -1824,7 +1824,7 @@ static void cp_remove_one (struct pci_dev *pdev) | |||
1824 | } | 1824 | } |
1825 | 1825 | ||
1826 | #ifdef CONFIG_PM | 1826 | #ifdef CONFIG_PM |
1827 | static int cp_suspend (struct pci_dev *pdev, u32 state) | 1827 | static int cp_suspend (struct pci_dev *pdev, pm_message_t state) |
1828 | { | 1828 | { |
1829 | struct net_device *dev; | 1829 | struct net_device *dev; |
1830 | struct cp_private *cp; | 1830 | struct cp_private *cp; |
diff --git a/drivers/net/bmac.c b/drivers/net/bmac.c index 3d2be7c28e06..734bd4ee3f9b 100644 --- a/drivers/net/bmac.c +++ b/drivers/net/bmac.c | |||
@@ -455,7 +455,7 @@ static void bmac_init_chip(struct net_device *dev) | |||
455 | } | 455 | } |
456 | 456 | ||
457 | #ifdef CONFIG_PM | 457 | #ifdef CONFIG_PM |
458 | static int bmac_suspend(struct macio_dev *mdev, u32 state) | 458 | static int bmac_suspend(struct macio_dev *mdev, pm_message_t state) |
459 | { | 459 | { |
460 | struct net_device* dev = macio_get_drvdata(mdev); | 460 | struct net_device* dev = macio_get_drvdata(mdev); |
461 | struct bmac_data *bp = netdev_priv(dev); | 461 | struct bmac_data *bp = netdev_priv(dev); |
diff --git a/drivers/net/irda/sa1100_ir.c b/drivers/net/irda/sa1100_ir.c index 89f5096cab74..8d34ac60d906 100644 --- a/drivers/net/irda/sa1100_ir.c +++ b/drivers/net/irda/sa1100_ir.c | |||
@@ -291,7 +291,7 @@ static void sa1100_irda_shutdown(struct sa1100_irda *si) | |||
291 | /* | 291 | /* |
292 | * Suspend the IrDA interface. | 292 | * Suspend the IrDA interface. |
293 | */ | 293 | */ |
294 | static int sa1100_irda_suspend(struct device *_dev, u32 state, u32 level) | 294 | static int sa1100_irda_suspend(struct device *_dev, pm_message_t state, u32 level) |
295 | { | 295 | { |
296 | struct net_device *dev = dev_get_drvdata(_dev); | 296 | struct net_device *dev = dev_get_drvdata(_dev); |
297 | struct sa1100_irda *si; | 297 | struct sa1100_irda *si; |
diff --git a/drivers/net/irda/vlsi_ir.c b/drivers/net/irda/vlsi_ir.c index 35fad8171a01..006e4f575606 100644 --- a/drivers/net/irda/vlsi_ir.c +++ b/drivers/net/irda/vlsi_ir.c | |||
@@ -1744,7 +1744,7 @@ static void __devexit vlsi_irda_remove(struct pci_dev *pdev) | |||
1744 | */ | 1744 | */ |
1745 | 1745 | ||
1746 | 1746 | ||
1747 | static int vlsi_irda_suspend(struct pci_dev *pdev, u32 state) | 1747 | static int vlsi_irda_suspend(struct pci_dev *pdev, pm_message_t state) |
1748 | { | 1748 | { |
1749 | struct net_device *ndev = pci_get_drvdata(pdev); | 1749 | struct net_device *ndev = pci_get_drvdata(pdev); |
1750 | vlsi_irda_dev_t *idev; | 1750 | vlsi_irda_dev_t *idev; |
diff --git a/drivers/net/pci-skeleton.c b/drivers/net/pci-skeleton.c index bb1c3d8981ee..4a391ea0f58a 100644 --- a/drivers/net/pci-skeleton.c +++ b/drivers/net/pci-skeleton.c | |||
@@ -1897,7 +1897,7 @@ static void netdrv_set_rx_mode (struct net_device *dev) | |||
1897 | 1897 | ||
1898 | #ifdef CONFIG_PM | 1898 | #ifdef CONFIG_PM |
1899 | 1899 | ||
1900 | static int netdrv_suspend (struct pci_dev *pdev, u32 state) | 1900 | static int netdrv_suspend (struct pci_dev *pdev, pm_message_t state) |
1901 | { | 1901 | { |
1902 | struct net_device *dev = pci_get_drvdata (pdev); | 1902 | struct net_device *dev = pci_get_drvdata (pdev); |
1903 | struct netdrv_private *tp = dev->priv; | 1903 | struct netdrv_private *tp = dev->priv; |
diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index 434e4ff967b2..07e2df09491f 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c | |||
@@ -1449,7 +1449,7 @@ rtl8169_remove_one(struct pci_dev *pdev) | |||
1449 | 1449 | ||
1450 | #ifdef CONFIG_PM | 1450 | #ifdef CONFIG_PM |
1451 | 1451 | ||
1452 | static int rtl8169_suspend(struct pci_dev *pdev, u32 state) | 1452 | static int rtl8169_suspend(struct pci_dev *pdev, pm_message_t state) |
1453 | { | 1453 | { |
1454 | struct net_device *dev = pci_get_drvdata(pdev); | 1454 | struct net_device *dev = pci_get_drvdata(pdev); |
1455 | struct rtl8169_private *tp = netdev_priv(dev); | 1455 | struct rtl8169_private *tp = netdev_priv(dev); |
diff --git a/drivers/net/smc91x.c b/drivers/net/smc91x.c index 6766bacbb199..5e561ba44333 100644 --- a/drivers/net/smc91x.c +++ b/drivers/net/smc91x.c | |||
@@ -2278,7 +2278,7 @@ static int smc_drv_remove(struct device *dev) | |||
2278 | return 0; | 2278 | return 0; |
2279 | } | 2279 | } |
2280 | 2280 | ||
2281 | static int smc_drv_suspend(struct device *dev, u32 state, u32 level) | 2281 | static int smc_drv_suspend(struct device *dev, pm_message_t state, u32 level) |
2282 | { | 2282 | { |
2283 | struct net_device *ndev = dev_get_drvdata(dev); | 2283 | struct net_device *ndev = dev_get_drvdata(dev); |
2284 | 2284 | ||
diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c index 008e19210e66..dd357dd8c370 100644 --- a/drivers/net/tulip/de2104x.c +++ b/drivers/net/tulip/de2104x.c | |||
@@ -2102,7 +2102,7 @@ static void __exit de_remove_one (struct pci_dev *pdev) | |||
2102 | 2102 | ||
2103 | #ifdef CONFIG_PM | 2103 | #ifdef CONFIG_PM |
2104 | 2104 | ||
2105 | static int de_suspend (struct pci_dev *pdev, u32 state) | 2105 | static int de_suspend (struct pci_dev *pdev, pm_message_t state) |
2106 | { | 2106 | { |
2107 | struct net_device *dev = pci_get_drvdata (pdev); | 2107 | struct net_device *dev = pci_get_drvdata (pdev); |
2108 | struct de_private *de = dev->priv; | 2108 | struct de_private *de = dev->priv; |
diff --git a/drivers/net/tulip/winbond-840.c b/drivers/net/tulip/winbond-840.c index f7e64ee11b1d..caff2f590165 100644 --- a/drivers/net/tulip/winbond-840.c +++ b/drivers/net/tulip/winbond-840.c | |||
@@ -1620,7 +1620,7 @@ static void __devexit w840_remove1 (struct pci_dev *pdev) | |||
1620 | * Detach must occur under spin_unlock_irq(), interrupts from a detached | 1620 | * Detach must occur under spin_unlock_irq(), interrupts from a detached |
1621 | * device would cause an irq storm. | 1621 | * device would cause an irq storm. |
1622 | */ | 1622 | */ |
1623 | static int w840_suspend (struct pci_dev *pdev, u32 state) | 1623 | static int w840_suspend (struct pci_dev *pdev, pm_message_t state) |
1624 | { | 1624 | { |
1625 | struct net_device *dev = pci_get_drvdata (pdev); | 1625 | struct net_device *dev = pci_get_drvdata (pdev); |
1626 | struct netdev_private *np = netdev_priv(dev); | 1626 | struct netdev_private *np = netdev_priv(dev); |
diff --git a/drivers/net/tulip/xircom_tulip_cb.c b/drivers/net/tulip/xircom_tulip_cb.c index 32ccb26890c3..b8a9b395c5ea 100644 --- a/drivers/net/tulip/xircom_tulip_cb.c +++ b/drivers/net/tulip/xircom_tulip_cb.c | |||
@@ -1655,7 +1655,7 @@ MODULE_DEVICE_TABLE(pci, xircom_pci_table); | |||
1655 | 1655 | ||
1656 | 1656 | ||
1657 | #ifdef CONFIG_PM | 1657 | #ifdef CONFIG_PM |
1658 | static int xircom_suspend(struct pci_dev *pdev, u32 state) | 1658 | static int xircom_suspend(struct pci_dev *pdev, pm_message_t state) |
1659 | { | 1659 | { |
1660 | struct net_device *dev = pci_get_drvdata(pdev); | 1660 | struct net_device *dev = pci_get_drvdata(pdev); |
1661 | struct xircom_private *tp = netdev_priv(dev); | 1661 | struct xircom_private *tp = netdev_priv(dev); |
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 | } |
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 2899144f2153..463c789cdc77 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c | |||
@@ -61,7 +61,7 @@ MODULE_DEVICE_TABLE(pci, card_ids); | |||
61 | 61 | ||
62 | static int airo_pci_probe(struct pci_dev *, const struct pci_device_id *); | 62 | static int airo_pci_probe(struct pci_dev *, const struct pci_device_id *); |
63 | static void airo_pci_remove(struct pci_dev *); | 63 | static void airo_pci_remove(struct pci_dev *); |
64 | static int airo_pci_suspend(struct pci_dev *pdev, u32 state); | 64 | static int airo_pci_suspend(struct pci_dev *pdev, pm_message_t state); |
65 | static int airo_pci_resume(struct pci_dev *pdev); | 65 | static int airo_pci_resume(struct pci_dev *pdev); |
66 | 66 | ||
67 | static struct pci_driver airo_driver = { | 67 | static struct pci_driver airo_driver = { |
@@ -5464,7 +5464,7 @@ static void __devexit airo_pci_remove(struct pci_dev *pdev) | |||
5464 | { | 5464 | { |
5465 | } | 5465 | } |
5466 | 5466 | ||
5467 | static int airo_pci_suspend(struct pci_dev *pdev, u32 state) | 5467 | static int airo_pci_suspend(struct pci_dev *pdev, pm_message_t state) |
5468 | { | 5468 | { |
5469 | struct net_device *dev = pci_get_drvdata(pdev); | 5469 | struct net_device *dev = pci_get_drvdata(pdev); |
5470 | struct airo_info *ai = dev->priv; | 5470 | struct airo_info *ai = dev->priv; |
diff --git a/drivers/net/wireless/airport.c b/drivers/net/wireless/airport.c index a1dc2a196087..b4f4bd7956a2 100644 --- a/drivers/net/wireless/airport.c +++ b/drivers/net/wireless/airport.c | |||
@@ -50,7 +50,7 @@ struct airport { | |||
50 | }; | 50 | }; |
51 | 51 | ||
52 | static int | 52 | static int |
53 | airport_suspend(struct macio_dev *mdev, u32 state) | 53 | airport_suspend(struct macio_dev *mdev, pm_message_t state) |
54 | { | 54 | { |
55 | struct net_device *dev = dev_get_drvdata(&mdev->ofdev.dev); | 55 | struct net_device *dev = dev_get_drvdata(&mdev->ofdev.dev); |
56 | struct orinoco_private *priv = netdev_priv(dev); | 56 | struct orinoco_private *priv = netdev_priv(dev); |
diff --git a/drivers/net/wireless/orinoco_pci.c b/drivers/net/wireless/orinoco_pci.c index ff30d37e12e2..7a6f52ea7faa 100644 --- a/drivers/net/wireless/orinoco_pci.c +++ b/drivers/net/wireless/orinoco_pci.c | |||
@@ -294,7 +294,7 @@ static void __devexit orinoco_pci_remove_one(struct pci_dev *pdev) | |||
294 | pci_disable_device(pdev); | 294 | pci_disable_device(pdev); |
295 | } | 295 | } |
296 | 296 | ||
297 | static int orinoco_pci_suspend(struct pci_dev *pdev, u32 state) | 297 | static int orinoco_pci_suspend(struct pci_dev *pdev, pm_message_t state) |
298 | { | 298 | { |
299 | struct net_device *dev = pci_get_drvdata(pdev); | 299 | struct net_device *dev = pci_get_drvdata(pdev); |
300 | struct orinoco_private *priv = netdev_priv(dev); | 300 | struct orinoco_private *priv = netdev_priv(dev); |
@@ -323,7 +323,7 @@ static int orinoco_pci_suspend(struct pci_dev *pdev, u32 state) | |||
323 | orinoco_unlock(priv, &flags); | 323 | orinoco_unlock(priv, &flags); |
324 | 324 | ||
325 | pci_save_state(pdev); | 325 | pci_save_state(pdev); |
326 | pci_set_power_state(pdev, 3); | 326 | pci_set_power_state(pdev, PCI_D3hot); |
327 | 327 | ||
328 | return 0; | 328 | return 0; |
329 | } | 329 | } |
diff --git a/drivers/net/wireless/prism54/islpci_hotplug.c b/drivers/net/wireless/prism54/islpci_hotplug.c index efd4d213ac3d..c17391d947f3 100644 --- a/drivers/net/wireless/prism54/islpci_hotplug.c +++ b/drivers/net/wireless/prism54/islpci_hotplug.c | |||
@@ -81,7 +81,7 @@ MODULE_DEVICE_TABLE(pci, prism54_id_tbl); | |||
81 | 81 | ||
82 | static int prism54_probe(struct pci_dev *, const struct pci_device_id *); | 82 | static int prism54_probe(struct pci_dev *, const struct pci_device_id *); |
83 | static void prism54_remove(struct pci_dev *); | 83 | static void prism54_remove(struct pci_dev *); |
84 | static int prism54_suspend(struct pci_dev *, u32 state); | 84 | static int prism54_suspend(struct pci_dev *, pm_message_t state); |
85 | static int prism54_resume(struct pci_dev *); | 85 | static int prism54_resume(struct pci_dev *); |
86 | 86 | ||
87 | static struct pci_driver prism54_driver = { | 87 | static struct pci_driver prism54_driver = { |
@@ -261,7 +261,7 @@ prism54_remove(struct pci_dev *pdev) | |||
261 | } | 261 | } |
262 | 262 | ||
263 | int | 263 | int |
264 | prism54_suspend(struct pci_dev *pdev, u32 state) | 264 | prism54_suspend(struct pci_dev *pdev, pm_message_t state) |
265 | { | 265 | { |
266 | struct net_device *ndev = pci_get_drvdata(pdev); | 266 | struct net_device *ndev = pci_get_drvdata(pdev); |
267 | islpci_private *priv = ndev ? netdev_priv(ndev) : NULL; | 267 | islpci_private *priv = ndev ? netdev_priv(ndev) : NULL; |