summaryrefslogtreecommitdiffstats
path: root/include/linux/bcma/bcma_driver_chipcommon.h
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2016-02-26 11:50:28 +0100
committerBrian Norris <computersforpeace@gmail.com>2016-04-04 00:07:57 -0700
commit5651d6aaf489d1db48c253cf884b40214e91c2c5 (patch)
treeda4bc73c1d32f47829974ab4fce280d99f6e28bb /include/linux/bcma/bcma_driver_chipcommon.h
parentfddcca5107051adf9e4481d2a79ae0616577fd2c (diff)
downloadtalos-obmc-linux-5651d6aaf489d1db48c253cf884b40214e91c2c5.tar.gz
talos-obmc-linux-5651d6aaf489d1db48c253cf884b40214e91c2c5.zip
mtd: bcm47xxsflash: use ioremap_cache() instead of KSEG0ADDR()
Using KSEG0ADDR makes code highly MIPS dependent and not portable. Thanks to the fix a68f376 ("MIPS: io.h: Define `ioremap_cache'") we can use ioremap_cache which is generic and supported on MIPS as well now. KSEG0ADDR was translating 0x1c000000 into 0x9c000000. With ioremap_cache we use MIPS's __ioremap (and then remap_area_pages). This results in different address (e.g. 0xc0080000) but it still should be cached as expected and it was successfully tested with BCM47186B0. Other than that drivers/bcma/driver_chipcommon_sflash.c nicely setups a struct resource for access window, but we wren't using it. Use it now and drop duplicated info. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat (limited to 'include/linux/bcma/bcma_driver_chipcommon.h')
-rw-r--r--include/linux/bcma/bcma_driver_chipcommon.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h
index 846513c73606..a5ac2cad5cb7 100644
--- a/include/linux/bcma/bcma_driver_chipcommon.h
+++ b/include/linux/bcma/bcma_driver_chipcommon.h
@@ -587,7 +587,6 @@ struct mtd_info;
struct bcma_sflash {
bool present;
- u32 window;
u32 blocksize;
u16 numblocks;
u32 size;
OpenPOWER on IntegriCloud