diff options
-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); |