aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-02-12 04:15:43 -0500
committerKalle Valo <kvalo@codeaurora.org>2016-03-07 07:41:08 -0500
commit2e62f9b2a41e4ade1a0bb3c1bbda4defe4c67243 (patch)
tree78982974904a36d52ffdcd24d99ad8393c3919a1 /drivers/bcma
parent2b02a36d12192f2a86388913143cd1e399eb971c (diff)
bcma: drop unneeded fields from bcma_pflash struct
Most of info stored in this struct wasn't really used anywhere as we put all that data in platform data & resource as well. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/bcma')
-rw-r--r--drivers/bcma/driver_mips.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/bcma/driver_mips.c b/drivers/bcma/driver_mips.c
index a40a203314db..20c134c016dc 100644
--- a/drivers/bcma/driver_mips.c
+++ b/drivers/bcma/driver_mips.c
@@ -288,18 +288,15 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore)
288 case BCMA_CC_FLASHT_PARA: 288 case BCMA_CC_FLASHT_PARA:
289 bcma_debug(bus, "Found parallel flash\n"); 289 bcma_debug(bus, "Found parallel flash\n");
290 pflash->present = true; 290 pflash->present = true;
291 pflash->window = BCMA_SOC_FLASH2;
292 pflash->window_size = BCMA_SOC_FLASH2_SZ;
293 291
294 if ((bcma_read32(cc->core, BCMA_CC_FLASH_CFG) & 292 if ((bcma_read32(cc->core, BCMA_CC_FLASH_CFG) &
295 BCMA_CC_FLASH_CFG_DS) == 0) 293 BCMA_CC_FLASH_CFG_DS) == 0)
296 pflash->buswidth = 1; 294 bcma_pflash_data.width = 1;
297 else 295 else
298 pflash->buswidth = 2; 296 bcma_pflash_data.width = 2;
299 297
300 bcma_pflash_data.width = pflash->buswidth; 298 bcma_pflash_resource.start = BCMA_SOC_FLASH2;
301 bcma_pflash_resource.start = pflash->window; 299 bcma_pflash_resource.end = BCMA_SOC_FLASH2 + BCMA_SOC_FLASH2_SZ;
302 bcma_pflash_resource.end = pflash->window + pflash->window_size;
303 300
304 break; 301 break;
305 default: 302 default: