Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rafał Miłecki and committed by
Kalle Valo
2e62f9b2 2b02a36d

+4 -10
+4 -7
drivers/bcma/driver_mips.c
··· 288 288 case BCMA_CC_FLASHT_PARA: 289 289 bcma_debug(bus, "Found parallel flash\n"); 290 290 pflash->present = true; 291 - pflash->window = BCMA_SOC_FLASH2; 292 - pflash->window_size = BCMA_SOC_FLASH2_SZ; 293 291 294 292 if ((bcma_read32(cc->core, BCMA_CC_FLASH_CFG) & 295 293 BCMA_CC_FLASH_CFG_DS) == 0) 296 - pflash->buswidth = 1; 294 + bcma_pflash_data.width = 1; 297 295 else 298 - pflash->buswidth = 2; 296 + bcma_pflash_data.width = 2; 299 297 300 - bcma_pflash_data.width = pflash->buswidth; 301 - bcma_pflash_resource.start = pflash->window; 302 - bcma_pflash_resource.end = pflash->window + pflash->window_size; 298 + bcma_pflash_resource.start = BCMA_SOC_FLASH2; 299 + bcma_pflash_resource.end = BCMA_SOC_FLASH2 + BCMA_SOC_FLASH2_SZ; 303 300 304 301 break; 305 302 default:
-3
include/linux/bcma/bcma_driver_chipcommon.h
··· 579 579 #ifdef CONFIG_BCMA_DRIVER_MIPS 580 580 struct bcma_pflash { 581 581 bool present; 582 - u8 buswidth; 583 - u32 window; 584 - u32 window_size; 585 582 }; 586 583 587 584 #ifdef CONFIG_BCMA_SFLASH