diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-08-12 12:57:01 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:14:06 -0400 |
commit | 13311b00117ed1bf903cf8870432504631a7ce77 (patch) | |
tree | 66cd77633b183a0453fe2e8e077733ac26f2e7ab /drivers/net/wireless/ath/ath5k/base.c | |
parent | aeb63cfd4ccc813c204a0d81ad6c5a90c33d8f61 (diff) |
ath5k: use bit shift operators for cache line size
This matches ath9k, providing consistency when reading both drivers.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/base.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c index 63c2b5714d2f..2b3cf39dd4b1 100644 --- a/drivers/net/wireless/ath/ath5k/base.c +++ b/drivers/net/wireless/ath/ath5k/base.c | |||
@@ -471,7 +471,7 @@ ath5k_pci_probe(struct pci_dev *pdev, | |||
471 | * DMA to work so force a reasonable value here if it | 471 | * DMA to work so force a reasonable value here if it |
472 | * comes up zero. | 472 | * comes up zero. |
473 | */ | 473 | */ |
474 | csz = L1_CACHE_BYTES / sizeof(u32); | 474 | csz = L1_CACHE_BYTES >> 2; |
475 | pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, csz); | 475 | pci_write_config_byte(pdev, PCI_CACHE_LINE_SIZE, csz); |
476 | } | 476 | } |
477 | /* | 477 | /* |
@@ -544,7 +544,7 @@ ath5k_pci_probe(struct pci_dev *pdev, | |||
544 | __set_bit(ATH_STAT_INVALID, sc->status); | 544 | __set_bit(ATH_STAT_INVALID, sc->status); |
545 | 545 | ||
546 | sc->iobase = mem; /* So we can unmap it on detach */ | 546 | sc->iobase = mem; /* So we can unmap it on detach */ |
547 | sc->common.cachelsz = csz * sizeof(u32); /* convert to bytes */ | 547 | sc->common.cachelsz = csz << 2; /* convert to bytes */ |
548 | sc->opmode = NL80211_IFTYPE_STATION; | 548 | sc->opmode = NL80211_IFTYPE_STATION; |
549 | sc->bintval = 1000; | 549 | sc->bintval = 1000; |
550 | mutex_init(&sc->lock); | 550 | mutex_init(&sc->lock); |