diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2011-05-23 21:00:17 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-06-01 15:12:31 -0400 |
commit | 4a7f5db19c0d8783f700cb606597c4c7b1364db5 (patch) | |
tree | 47e3ed3ece7255c0d21a5bb3a46da3aeb34f65bc /drivers/net/wireless/mwifiex/sdio.c | |
parent | 0541ac4cb47a31f44bf841a4dade539395c146ee (diff) |
mwifiex: remove support for old chipsets W0/W1
For SD8787 A0/A1 chipsets we use the default firmware image
file 'mrvl/sd8787_uapsta.bin'. So the chip rev id variable
is removed.
The global variable fw_name is moved to adapter structure
so that we can support a different interface, such as PCIe,
in future.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/sdio.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/sdio.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/mwifiex/sdio.c b/drivers/net/wireless/mwifiex/sdio.c index d425dbd91d19..4327b6d099c8 100644 --- a/drivers/net/wireless/mwifiex/sdio.c +++ b/drivers/net/wireless/mwifiex/sdio.c | |||
@@ -1531,6 +1531,7 @@ static int mwifiex_register_dev(struct mwifiex_adapter *adapter) | |||
1531 | sdio_set_drvdata(func, card); | 1531 | sdio_set_drvdata(func, card); |
1532 | 1532 | ||
1533 | adapter->dev = &func->dev; | 1533 | adapter->dev = &func->dev; |
1534 | strcpy(adapter->fw_name, SD8787_DEFAULT_FW_NAME); | ||
1534 | 1535 | ||
1535 | return 0; | 1536 | return 0; |
1536 | 1537 | ||
@@ -1552,7 +1553,6 @@ disable_func: | |||
1552 | * the first interrupt got from bootloader | 1553 | * the first interrupt got from bootloader |
1553 | * - Disable host interrupt mask register | 1554 | * - Disable host interrupt mask register |
1554 | * - Get SDIO port | 1555 | * - Get SDIO port |
1555 | * - Get revision ID | ||
1556 | * - Initialize SDIO variables in card | 1556 | * - Initialize SDIO variables in card |
1557 | * - Allocate MP registers | 1557 | * - Allocate MP registers |
1558 | * - Allocate MPA Tx and Rx buffers | 1558 | * - Allocate MPA Tx and Rx buffers |
@@ -1576,10 +1576,6 @@ static int mwifiex_init_sdio(struct mwifiex_adapter *adapter) | |||
1576 | /* Get SDIO ioport */ | 1576 | /* Get SDIO ioport */ |
1577 | mwifiex_init_sdio_ioport(adapter); | 1577 | mwifiex_init_sdio_ioport(adapter); |
1578 | 1578 | ||
1579 | /* Get revision ID */ | ||
1580 | #define REV_ID_REG 0x5c | ||
1581 | mwifiex_read_reg(adapter, REV_ID_REG, &adapter->revision_id); | ||
1582 | |||
1583 | /* Initialize SDIO variables in card */ | 1579 | /* Initialize SDIO variables in card */ |
1584 | card->mp_rd_bitmap = 0; | 1580 | card->mp_rd_bitmap = 0; |
1585 | card->mp_wr_bitmap = 0; | 1581 | card->mp_wr_bitmap = 0; |
@@ -1751,4 +1747,4 @@ MODULE_AUTHOR("Marvell International Ltd."); | |||
1751 | MODULE_DESCRIPTION("Marvell WiFi-Ex SDIO Driver version " SDIO_VERSION); | 1747 | MODULE_DESCRIPTION("Marvell WiFi-Ex SDIO Driver version " SDIO_VERSION); |
1752 | MODULE_VERSION(SDIO_VERSION); | 1748 | MODULE_VERSION(SDIO_VERSION); |
1753 | MODULE_LICENSE("GPL v2"); | 1749 | MODULE_LICENSE("GPL v2"); |
1754 | MODULE_FIRMWARE("sd8787.bin"); | 1750 | MODULE_FIRMWARE("mrvl/sd8787_uapsta.bin"); |