diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2009-07-22 10:06:56 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-07-26 22:25:47 -0400 |
commit | 51def0bea92629dff02ff1de40603eb90c609c55 (patch) | |
tree | 9c8f2192098c052704faca9b749247f7c7f80d84 /drivers | |
parent | 1896e61ff7cc1c9dd0d8b1cf4a9426a0f7217a20 (diff) |
imwc3200: move iwmc3200 SDIO ids to sdio_ids.h
1. add intel's sdio vendor id to sdio_ids.h
2. move iwmc3200 sdio devices' ids to sdio_ids.h
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wimax/i2400m/sdio.c | 12 | ||||
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/sdio.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwmc3200wifi/sdio.h | 3 |
3 files changed, 8 insertions, 11 deletions
diff --git a/drivers/net/wimax/i2400m/sdio.c b/drivers/net/wimax/i2400m/sdio.c index 2538825d1c66..ea7b29034aab 100644 --- a/drivers/net/wimax/i2400m/sdio.c +++ b/drivers/net/wimax/i2400m/sdio.c | |||
@@ -58,6 +58,7 @@ | |||
58 | */ | 58 | */ |
59 | 59 | ||
60 | #include <linux/debugfs.h> | 60 | #include <linux/debugfs.h> |
61 | #include <linux/mmc/sdio_ids.h> | ||
61 | #include <linux/mmc/sdio.h> | 62 | #include <linux/mmc/sdio.h> |
62 | #include <linux/mmc/sdio_func.h> | 63 | #include <linux/mmc/sdio_func.h> |
63 | #include "i2400m-sdio.h" | 64 | #include "i2400m-sdio.h" |
@@ -501,15 +502,12 @@ void i2400ms_remove(struct sdio_func *func) | |||
501 | d_fnend(3, dev, "SDIO func %p\n", func); | 502 | d_fnend(3, dev, "SDIO func %p\n", func); |
502 | } | 503 | } |
503 | 504 | ||
504 | enum { | ||
505 | I2400MS_INTEL_VID = 0x89, | ||
506 | }; | ||
507 | |||
508 | static | 505 | static |
509 | const struct sdio_device_id i2400ms_sdio_ids[] = { | 506 | const struct sdio_device_id i2400ms_sdio_ids[] = { |
510 | /* Intel: i2400m WiMAX over SDIO */ | 507 | /* Intel: i2400m WiMAX (iwmc3200) over SDIO */ |
511 | { SDIO_DEVICE(I2400MS_INTEL_VID, 0x1402) }, | 508 | { SDIO_DEVICE(SDIO_VENDOR_ID_INTEL, |
512 | { }, /* end: all zeroes */ | 509 | SDIO_DEVICE_ID_INTEL_IWMC3200WIMAX) }, |
510 | { /* end: all zeroes */ }, | ||
513 | }; | 511 | }; |
514 | MODULE_DEVICE_TABLE(sdio, i2400ms_sdio_ids); | 512 | MODULE_DEVICE_TABLE(sdio, i2400ms_sdio_ids); |
515 | 513 | ||
diff --git a/drivers/net/wireless/iwmc3200wifi/sdio.c b/drivers/net/wireless/iwmc3200wifi/sdio.c index b93f620ee4f1..8b1de84003ca 100644 --- a/drivers/net/wireless/iwmc3200wifi/sdio.c +++ b/drivers/net/wireless/iwmc3200wifi/sdio.c | |||
@@ -65,6 +65,7 @@ | |||
65 | #include <linux/kernel.h> | 65 | #include <linux/kernel.h> |
66 | #include <linux/netdevice.h> | 66 | #include <linux/netdevice.h> |
67 | #include <linux/debugfs.h> | 67 | #include <linux/debugfs.h> |
68 | #include <linux/mmc/sdio_ids.h> | ||
68 | #include <linux/mmc/sdio.h> | 69 | #include <linux/mmc/sdio.h> |
69 | #include <linux/mmc/sdio_func.h> | 70 | #include <linux/mmc/sdio_func.h> |
70 | 71 | ||
@@ -492,7 +493,8 @@ static void iwm_sdio_remove(struct sdio_func *func) | |||
492 | } | 493 | } |
493 | 494 | ||
494 | static const struct sdio_device_id iwm_sdio_ids[] = { | 495 | static const struct sdio_device_id iwm_sdio_ids[] = { |
495 | { SDIO_DEVICE(SDIO_VENDOR_ID_INTEL, SDIO_DEVICE_ID_IWM) }, | 496 | { SDIO_DEVICE(SDIO_VENDOR_ID_INTEL, |
497 | SDIO_DEVICE_ID_INTEL_IWMC3200WIFI) }, | ||
496 | { /* end: all zeroes */ }, | 498 | { /* end: all zeroes */ }, |
497 | }; | 499 | }; |
498 | MODULE_DEVICE_TABLE(sdio, iwm_sdio_ids); | 500 | MODULE_DEVICE_TABLE(sdio, iwm_sdio_ids); |
diff --git a/drivers/net/wireless/iwmc3200wifi/sdio.h b/drivers/net/wireless/iwmc3200wifi/sdio.h index b3c156b08dda..aab6b6892e45 100644 --- a/drivers/net/wireless/iwmc3200wifi/sdio.h +++ b/drivers/net/wireless/iwmc3200wifi/sdio.h | |||
@@ -39,9 +39,6 @@ | |||
39 | #ifndef __IWM_SDIO_H__ | 39 | #ifndef __IWM_SDIO_H__ |
40 | #define __IWM_SDIO_H__ | 40 | #define __IWM_SDIO_H__ |
41 | 41 | ||
42 | #define SDIO_VENDOR_ID_INTEL 0x89 | ||
43 | #define SDIO_DEVICE_ID_IWM 0x1403 | ||
44 | |||
45 | #define IWM_SDIO_DATA_ADDR 0x0 | 42 | #define IWM_SDIO_DATA_ADDR 0x0 |
46 | #define IWM_SDIO_INTR_ENABLE_ADDR 0x14 | 43 | #define IWM_SDIO_INTR_ENABLE_ADDR 0x14 |
47 | #define IWM_SDIO_INTR_STATUS_ADDR 0x13 | 44 | #define IWM_SDIO_INTR_STATUS_ADDR 0x13 |