Commit 2e62f9b2 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Kalle Valo

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: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 2b02a36d
...@@ -288,18 +288,15 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore) ...@@ -288,18 +288,15 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore)
case BCMA_CC_FLASHT_PARA: case BCMA_CC_FLASHT_PARA:
bcma_debug(bus, "Found parallel flash\n"); bcma_debug(bus, "Found parallel flash\n");
pflash->present = true; pflash->present = true;
pflash->window = BCMA_SOC_FLASH2;
pflash->window_size = BCMA_SOC_FLASH2_SZ;
if ((bcma_read32(cc->core, BCMA_CC_FLASH_CFG) & if ((bcma_read32(cc->core, BCMA_CC_FLASH_CFG) &
BCMA_CC_FLASH_CFG_DS) == 0) BCMA_CC_FLASH_CFG_DS) == 0)
pflash->buswidth = 1; bcma_pflash_data.width = 1;
else else
pflash->buswidth = 2; bcma_pflash_data.width = 2;
bcma_pflash_data.width = pflash->buswidth; bcma_pflash_resource.start = BCMA_SOC_FLASH2;
bcma_pflash_resource.start = pflash->window; bcma_pflash_resource.end = BCMA_SOC_FLASH2 + BCMA_SOC_FLASH2_SZ;
bcma_pflash_resource.end = pflash->window + pflash->window_size;
break; break;
default: default:
......
...@@ -579,9 +579,6 @@ struct bcma_chipcommon_pmu { ...@@ -579,9 +579,6 @@ struct bcma_chipcommon_pmu {
#ifdef CONFIG_BCMA_DRIVER_MIPS #ifdef CONFIG_BCMA_DRIVER_MIPS
struct bcma_pflash { struct bcma_pflash {
bool present; bool present;
u8 buswidth;
u32 window;
u32 window_size;
}; };
#ifdef CONFIG_BCMA_SFLASH #ifdef CONFIG_BCMA_SFLASH
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment