struct brcmf_sdio_dev *sdiodev; /* sdio device handler */
        struct brcmf_chip *ci;  /* Chip info struct */
 
-       u32 ramsize;            /* Size of RAM in SOCRAM (bytes) */
-
        u32 hostintmask;        /* Copy of Host Interrupt Mask */
        atomic_t intstatus;     /* Intstatus bits (events) pending */
        atomic_t fcstate;       /* State of dongle flow-control */
        struct sdpcm_shared_le sh_le;
        __le32 addr_le;
 
-       shaddr = bus->ci->rambase + bus->ramsize - 4;
+       shaddr = bus->ci->rambase + bus->ci->ramsize - 4;
 
        /*
         * Read last word in socram to determine
                drivestrength = DEFAULT_SDIO_DRIVE_STRENGTH;
        brcmf_sdio_drivestrengthinit(bus->sdiodev, bus->ci, drivestrength);
 
-       /* Get info on the SOCRAM cores... */
-       bus->ramsize = bus->ci->ramsize;
-       if (!(bus->ramsize)) {
-               brcmf_err("failed to find SOCRAM memory!\n");
-               goto fail;
-       }
-
        /* Set card control so an SDIO card reset does a WLAN backplane reset */
        reg_val = brcmf_sdiod_regrb(bus->sdiodev,
                                    SDIO_CCCR_BRCM_CARDCTRL, &err);