bcma: mark pflash as present when available
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 29 Sep 2012 18:33:49 +0000 (20:33 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Oct 2012 19:52:32 +0000 (15:52 -0400)
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/driver_mips.c
include/linux/bcma/bcma_driver_chipcommon.h

index f44f1fb67011ac870d255c92b7f43df3b49620cf..c0fb1d45c6db2d453ef764bf6a9191ea279530a8 100644 (file)
@@ -190,6 +190,7 @@ static void bcma_core_mips_flash_detect(struct bcma_drv_mips *mcore)
                break;
        case BCMA_CC_FLASHT_PARA:
                bcma_debug(bus, "Found parallel flash\n");
+               bus->drv_cc.pflash.present = true;
                bus->drv_cc.pflash.window = 0x1c000000;
                bus->drv_cc.pflash.window_size = 0x02000000;
 
index fbde7cbd2d7de75f8cfa4ee979016435a3b155bd..79993969953a2a35498cdef900dcb762cb51f3e7 100644 (file)
@@ -510,6 +510,7 @@ struct bcma_chipcommon_pmu {
 
 #ifdef CONFIG_BCMA_DRIVER_MIPS
 struct bcma_pflash {
+       bool present;
        u8 buswidth;
        u32 window;
        u32 window_size;
This page took 0.027841 seconds and 5 git commands to generate.