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>
This commit is contained in:
committed by
John W. Linville
parent
24ea602e18
commit
98a1e2a926
@ -4092,16 +4092,20 @@ static void b43_imcfglo_timeouts_workaround(struct b43_wldev *dev)
|
||||
bus->pcicore.dev->id.revision <= 5) {
|
||||
/* IMCFGLO timeouts workaround. */
|
||||
tmp = ssb_read32(dev->dev, SSB_IMCFGLO);
|
||||
tmp &= ~SSB_IMCFGLO_REQTO;
|
||||
tmp &= ~SSB_IMCFGLO_SERTO;
|
||||
switch (bus->bustype) {
|
||||
case SSB_BUSTYPE_PCI:
|
||||
case SSB_BUSTYPE_PCMCIA:
|
||||
tmp &= ~SSB_IMCFGLO_REQTO;
|
||||
tmp &= ~SSB_IMCFGLO_SERTO;
|
||||
tmp |= 0x32;
|
||||
break;
|
||||
case SSB_BUSTYPE_SSB:
|
||||
tmp &= ~SSB_IMCFGLO_REQTO;
|
||||
tmp &= ~SSB_IMCFGLO_SERTO;
|
||||
tmp |= 0x53;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
ssb_write32(dev->dev, SSB_IMCFGLO, tmp);
|
||||
}
|
||||
|
Reference in New Issue
Block a user