diff options
author | Pavel Machek <pavel@ucw.cz> | 2005-06-20 17:28:43 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-27 23:26:31 -0400 |
commit | 8724a118031a4eb62174b3e12745e4d35d4b03fe (patch) | |
tree | eb896a9608da4a175e42279f5d8ffe2d4a3c6c7b /drivers/net/wireless/ipw2100.c | |
parent | 5dc54a65b6981d327a84c7651bbfeef0c0aff977 (diff) |
[PATCH] ipw2100: small cleanups
Fix few typos/thinkos in ipw, remove ugly macro (it is commented around,
anyway), and fix types passed to pci_set_power_state.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'drivers/net/wireless/ipw2100.c')
-rw-r--r-- | drivers/net/wireless/ipw2100.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index 832b736e181c..62f2935246bb 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
@@ -925,7 +925,7 @@ static int sw_reset_and_clock(struct ipw2100_priv *priv) | |||
925 | } | 925 | } |
926 | 926 | ||
927 | /********************************************************************* | 927 | /********************************************************************* |
928 | Procedure : ipw2100_ipw2100_download_firmware | 928 | Procedure : ipw2100_download_firmware |
929 | Purpose : Initiaze adapter after power on. | 929 | Purpose : Initiaze adapter after power on. |
930 | The sequence is: | 930 | The sequence is: |
931 | 1. assert s/w reset first! | 931 | 1. assert s/w reset first! |
@@ -1192,7 +1192,6 @@ static int ipw2100_get_hw_features(struct ipw2100_priv *priv) | |||
1192 | */ | 1192 | */ |
1193 | static int ipw2100_start_adapter(struct ipw2100_priv *priv) | 1193 | static int ipw2100_start_adapter(struct ipw2100_priv *priv) |
1194 | { | 1194 | { |
1195 | #define IPW_WAIT_FW_INIT_COMPLETE_DELAY (40 * HZ / 1000) | ||
1196 | int i; | 1195 | int i; |
1197 | u32 inta, inta_mask, gpio; | 1196 | u32 inta, inta_mask, gpio; |
1198 | 1197 | ||
@@ -1229,7 +1228,7 @@ static int ipw2100_start_adapter(struct ipw2100_priv *priv) | |||
1229 | i = 5000; | 1228 | i = 5000; |
1230 | do { | 1229 | do { |
1231 | set_current_state(TASK_UNINTERRUPTIBLE); | 1230 | set_current_state(TASK_UNINTERRUPTIBLE); |
1232 | schedule_timeout(IPW_WAIT_FW_INIT_COMPLETE_DELAY); | 1231 | schedule_timeout(40 * HZ / 1000); |
1233 | /* Todo... wait for sync command ... */ | 1232 | /* Todo... wait for sync command ... */ |
1234 | 1233 | ||
1235 | read_register(priv->net_dev, IPW_REG_INTA, &inta); | 1234 | read_register(priv->net_dev, IPW_REG_INTA, &inta); |
@@ -1694,7 +1693,7 @@ static int ipw2100_up(struct ipw2100_priv *priv, int deferred) | |||
1694 | } else | 1693 | } else |
1695 | priv->status |= STATUS_POWERED; | 1694 | priv->status |= STATUS_POWERED; |
1696 | 1695 | ||
1697 | /* Load the firmeware, start the clocks, etc. */ | 1696 | /* Load the firmware, start the clocks, etc. */ |
1698 | if (ipw2100_start_adapter(priv)) { | 1697 | if (ipw2100_start_adapter(priv)) { |
1699 | IPW_DEBUG_ERROR("%s: Failed to start the firmware.\n", | 1698 | IPW_DEBUG_ERROR("%s: Failed to start the firmware.\n", |
1700 | priv->net_dev->name); | 1699 | priv->net_dev->name); |
@@ -6498,7 +6497,7 @@ static int ipw2100_pci_init_one(struct pci_dev *pci_dev, | |||
6498 | if ((val & 0x0000ff00) != 0) | 6497 | if ((val & 0x0000ff00) != 0) |
6499 | pci_write_config_dword(pci_dev, 0x40, val & 0xffff00ff); | 6498 | pci_write_config_dword(pci_dev, 0x40, val & 0xffff00ff); |
6500 | 6499 | ||
6501 | pci_set_power_state(pci_dev, 0); | 6500 | pci_set_power_state(pci_dev, PCI_D0); |
6502 | 6501 | ||
6503 | if (!ipw2100_hw_is_adapter_in_system(dev)) { | 6502 | if (!ipw2100_hw_is_adapter_in_system(dev)) { |
6504 | printk(KERN_WARNING DRV_NAME | 6503 | printk(KERN_WARNING DRV_NAME |
@@ -8034,7 +8033,7 @@ static iw_handler ipw2100_wx_handlers[] = | |||
8034 | ipw2100_wx_set_wap, /* SIOCSIWAP */ | 8033 | ipw2100_wx_set_wap, /* SIOCSIWAP */ |
8035 | ipw2100_wx_get_wap, /* SIOCGIWAP */ | 8034 | ipw2100_wx_get_wap, /* SIOCGIWAP */ |
8036 | NULL, /* -- hole -- */ | 8035 | NULL, /* -- hole -- */ |
8037 | NULL, /* SIOCGIWAPLIST -- depricated */ | 8036 | NULL, /* SIOCGIWAPLIST -- deprecated */ |
8038 | ipw2100_wx_set_scan, /* SIOCSIWSCAN */ | 8037 | ipw2100_wx_set_scan, /* SIOCSIWSCAN */ |
8039 | ipw2100_wx_get_scan, /* SIOCGIWSCAN */ | 8038 | ipw2100_wx_get_scan, /* SIOCGIWSCAN */ |
8040 | ipw2100_wx_set_essid, /* SIOCSIWESSID */ | 8039 | ipw2100_wx_set_essid, /* SIOCSIWESSID */ |