Skip to content

Commit 2e62f9b

Browse files
rmileckiKalle Valo
authored andcommitted
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>
1 parent 2b02a36 commit 2e62f9b

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

‎drivers/bcma/driver_mips.c‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,18 +288,15 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore)
288288
case BCMA_CC_FLASHT_PARA:
289289
bcma_debug(bus, "Found parallel flash\n");
290290
pflash->present = true;
291-
pflash->window = BCMA_SOC_FLASH2;
292-
pflash->window_size = BCMA_SOC_FLASH2_SZ;
293291

294292
if ((bcma_read32(cc->core, BCMA_CC_FLASH_CFG) &
295293
BCMA_CC_FLASH_CFG_DS) == 0)
296-
pflash->buswidth = 1;
294+
bcma_pflash_data.width = 1;
297295
else
298-
pflash->buswidth = 2;
296+
bcma_pflash_data.width = 2;
299297

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;
303300

304301
break;
305302
default:

‎include/linux/bcma/bcma_driver_chipcommon.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,6 @@ struct bcma_chipcommon_pmu {
579579
#ifdef CONFIG_BCMA_DRIVER_MIPS
580580
struct bcma_pflash {
581581
bool present;
582-
u8 buswidth;
583-
u32 window;
584-
u32 window_size;
585582
};
586583

587584
#ifdef CONFIG_BCMA_SFLASH

0 commit comments

Comments
 (0)