diff options
author | Michael Buesch <mb@bu3sch.de> | 2009-09-08 13:33:31 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-09-09 11:19:03 -0400 |
commit | 98a1e2a9260d30ad691fbd1ed778a05e38fe655b (patch) | |
tree | 8479aab578a5f5d964084f1966d3b7c42af42459 /drivers/net/wireless | |
parent | 24ea602e183ca20a7577ebe253323d0e5d0f9847 (diff) |
b44/b43/b43legacy: Fix switch warnings introduced by SSB-SDIO
This fixes some gcc warnings for switch statements.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/b43/main.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/b43legacy/main.c | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index d29323d50837..7a9a3fa55425 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -4092,16 +4092,20 @@ static void b43_imcfglo_timeouts_workaround(struct b43_wldev *dev) | |||
4092 | bus->pcicore.dev->id.revision <= 5) { | 4092 | bus->pcicore.dev->id.revision <= 5) { |
4093 | /* IMCFGLO timeouts workaround. */ | 4093 | /* IMCFGLO timeouts workaround. */ |
4094 | tmp = ssb_read32(dev->dev, SSB_IMCFGLO); | 4094 | tmp = ssb_read32(dev->dev, SSB_IMCFGLO); |
4095 | tmp &= ~SSB_IMCFGLO_REQTO; | ||
4096 | tmp &= ~SSB_IMCFGLO_SERTO; | ||
4097 | switch (bus->bustype) { | 4095 | switch (bus->bustype) { |
4098 | case SSB_BUSTYPE_PCI: | 4096 | case SSB_BUSTYPE_PCI: |
4099 | case SSB_BUSTYPE_PCMCIA: | 4097 | case SSB_BUSTYPE_PCMCIA: |
4098 | tmp &= ~SSB_IMCFGLO_REQTO; | ||
4099 | tmp &= ~SSB_IMCFGLO_SERTO; | ||
4100 | tmp |= 0x32; | 4100 | tmp |= 0x32; |
4101 | break; | 4101 | break; |
4102 | case SSB_BUSTYPE_SSB: | 4102 | case SSB_BUSTYPE_SSB: |
4103 | tmp &= ~SSB_IMCFGLO_REQTO; | ||
4104 | tmp &= ~SSB_IMCFGLO_SERTO; | ||
4103 | tmp |= 0x53; | 4105 | tmp |= 0x53; |
4104 | break; | 4106 | break; |
4107 | default: | ||
4108 | break; | ||
4105 | } | 4109 | } |
4106 | ssb_write32(dev->dev, SSB_IMCFGLO, tmp); | 4110 | ssb_write32(dev->dev, SSB_IMCFGLO, tmp); |
4107 | } | 4111 | } |
diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c index b166a6f9f055..1d9223b3d4c4 100644 --- a/drivers/net/wireless/b43legacy/main.c +++ b/drivers/net/wireless/b43legacy/main.c | |||
@@ -3106,16 +3106,20 @@ static void b43legacy_imcfglo_timeouts_workaround(struct b43legacy_wldev *dev) | |||
3106 | bus->pcicore.dev->id.revision <= 5) { | 3106 | bus->pcicore.dev->id.revision <= 5) { |
3107 | /* IMCFGLO timeouts workaround. */ | 3107 | /* IMCFGLO timeouts workaround. */ |
3108 | tmp = ssb_read32(dev->dev, SSB_IMCFGLO); | 3108 | tmp = ssb_read32(dev->dev, SSB_IMCFGLO); |
3109 | tmp &= ~SSB_IMCFGLO_REQTO; | ||
3110 | tmp &= ~SSB_IMCFGLO_SERTO; | ||
3111 | switch (bus->bustype) { | 3109 | switch (bus->bustype) { |
3112 | case SSB_BUSTYPE_PCI: | 3110 | case SSB_BUSTYPE_PCI: |
3113 | case SSB_BUSTYPE_PCMCIA: | 3111 | case SSB_BUSTYPE_PCMCIA: |
3112 | tmp &= ~SSB_IMCFGLO_REQTO; | ||
3113 | tmp &= ~SSB_IMCFGLO_SERTO; | ||
3114 | tmp |= 0x32; | 3114 | tmp |= 0x32; |
3115 | break; | 3115 | break; |
3116 | case SSB_BUSTYPE_SSB: | 3116 | case SSB_BUSTYPE_SSB: |
3117 | tmp &= ~SSB_IMCFGLO_REQTO; | ||
3118 | tmp &= ~SSB_IMCFGLO_SERTO; | ||
3117 | tmp |= 0x53; | 3119 | tmp |= 0x53; |
3118 | break; | 3120 | break; |
3121 | default: | ||
3122 | break; | ||
3119 | } | 3123 | } |
3120 | ssb_write32(dev->dev, SSB_IMCFGLO, tmp); | 3124 | ssb_write32(dev->dev, SSB_IMCFGLO, tmp); |
3121 | } | 3125 | } |