Commit f3341e71 authored by Arend van Spriel's avatar Arend van Spriel Committed by Greg Kroah-Hartman

staging: brcm80211: remove BCMLXSDMMC macro definition

The conditional code depending on BCMLXSDMMC macro definition is
always compiled into the fullmac driver.
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Reviewed-by: default avatarRoland Vossen <rvossen@broadcom.com>
Reviewed-by: default avatarFranky Lin <frankyl@broadcom.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 8af2d2a5
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
ccflags-y := \ ccflags-y := \
-DBCMLXSDMMC \
-DBCMPLATFORM_BUS \ -DBCMPLATFORM_BUS \
-DBCMSDIO \ -DBCMSDIO \
-DBRCM_FULLMAC \ -DBRCM_FULLMAC \
......
...@@ -121,7 +121,6 @@ bool brcmf_sdio_chipmatch(u16 vendor, u16 device) ...@@ -121,7 +121,6 @@ bool brcmf_sdio_chipmatch(u16 vendor, u16 device)
} }
#if defined(BCMPLATFORM_BUS) #if defined(BCMPLATFORM_BUS)
#if defined(BCMLXSDMMC)
/* forward declarations */ /* forward declarations */
int brcmf_sdio_probe(struct device *dev); int brcmf_sdio_probe(struct device *dev);
EXPORT_SYMBOL(brcmf_sdio_probe); EXPORT_SYMBOL(brcmf_sdio_probe);
...@@ -129,36 +128,15 @@ EXPORT_SYMBOL(brcmf_sdio_probe); ...@@ -129,36 +128,15 @@ EXPORT_SYMBOL(brcmf_sdio_probe);
int brcmf_sdio_remove(struct device *dev); int brcmf_sdio_remove(struct device *dev);
EXPORT_SYMBOL(brcmf_sdio_remove); EXPORT_SYMBOL(brcmf_sdio_remove);
#else
/* forward declarations */
static int __devinit brcmf_sdio_probe(struct device *dev);
static int __devexit brcmf_sdio_remove(struct device *dev);
#endif /* BCMLXSDMMC */
#ifndef BCMLXSDMMC
static
#endif /* BCMLXSDMMC */
int brcmf_sdio_probe(struct device *dev) int brcmf_sdio_probe(struct device *dev)
{ {
struct bcmsdh_hc *sdhc = NULL; struct bcmsdh_hc *sdhc = NULL;
unsigned long regs = 0; unsigned long regs = 0;
struct brcmf_sdio *sdh = NULL; struct brcmf_sdio *sdh = NULL;
#if !defined(BCMLXSDMMC) && defined(BCMPLATFORM_BUS)
struct platform_device *pdev;
struct resource *r;
#endif /* BCMLXSDMMC */
int irq = 0; int irq = 0;
u32 vendevid; u32 vendevid;
unsigned long irq_flags = 0; unsigned long irq_flags = 0;
#if !defined(BCMLXSDMMC) && defined(BCMPLATFORM_BUS)
pdev = to_platform_device(dev);
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
irq = platform_get_irq(pdev, 0);
if (!r || irq == NO_IRQ)
return -ENXIO;
#endif /* BCMLXSDMMC */
#if defined(OOB_INTR_ONLY) #if defined(OOB_INTR_ONLY)
#ifdef HW_OOB #ifdef HW_OOB
irq_flags = irq_flags =
...@@ -181,19 +159,12 @@ int brcmf_sdio_probe(struct device *dev) ...@@ -181,19 +159,12 @@ int brcmf_sdio_probe(struct device *dev)
} }
sdhc->dev = (void *)dev; sdhc->dev = (void *)dev;
#ifdef BCMLXSDMMC
sdh = brcmf_sdcard_attach((void *)0, (void **)&regs, irq); sdh = brcmf_sdcard_attach((void *)0, (void **)&regs, irq);
if (!sdh) { if (!sdh) {
SDLX_MSG(("%s: bcmsdh_attach failed\n", __func__)); SDLX_MSG(("%s: bcmsdh_attach failed\n", __func__));
goto err; goto err;
} }
#else
sdh = brcmf_sdcard_attach((void *)r->start, (void **)&regs, irq);
if (!sdh) {
SDLX_MSG(("%s: bcmsdh_attach failed\n", __func__));
goto err;
}
#endif /* BCMLXSDMMC */
sdhc->sdh = sdh; sdhc->sdh = sdh;
sdhc->oob_irq = irq; sdhc->oob_irq = irq;
sdhc->oob_flags = irq_flags; sdhc->oob_flags = irq_flags;
...@@ -229,9 +200,6 @@ int brcmf_sdio_probe(struct device *dev) ...@@ -229,9 +200,6 @@ int brcmf_sdio_probe(struct device *dev)
return -ENODEV; return -ENODEV;
} }
#ifndef BCMLXSDMMC
static
#endif /* BCMLXSDMMC */
int brcmf_sdio_remove(struct device *dev) int brcmf_sdio_remove(struct device *dev)
{ {
struct bcmsdh_hc *sdhc, *prev; struct bcmsdh_hc *sdhc, *prev;
...@@ -258,11 +226,6 @@ int brcmf_sdio_remove(struct device *dev) ...@@ -258,11 +226,6 @@ int brcmf_sdio_remove(struct device *dev)
/* release SDIO Host Controller info */ /* release SDIO Host Controller info */
kfree(sdhc); kfree(sdhc);
#if !defined(BCMLXSDMMC)
dev_set_drvdata(dev, NULL);
#endif /* !defined(BCMLXSDMMC) */
return 0; return 0;
} }
#endif /* BCMPLATFORM_BUS */ #endif /* BCMPLATFORM_BUS */
......
...@@ -38,9 +38,7 @@ int wifi_get_irq_number(unsigned long *irq_flags_ptr); ...@@ -38,9 +38,7 @@ int wifi_get_irq_number(unsigned long *irq_flags_ptr);
#if defined(OOB_INTR_ONLY) #if defined(OOB_INTR_ONLY)
#if defined(BCMLXSDMMC)
extern int sdioh_mmc_irq(int irq); extern int sdioh_mmc_irq(int irq);
#endif /* (BCMLXSDMMC) */
#ifdef CUSTOMER_HW3 #ifdef CUSTOMER_HW3
#include <mach/gpio.h> #include <mach/gpio.h>
......
...@@ -923,14 +923,7 @@ static int brcmf_sdbrcm_htclk(dhd_bus_t *bus, bool on, bool pendok) ...@@ -923,14 +923,7 @@ static int brcmf_sdbrcm_htclk(dhd_bus_t *bus, bool on, bool pendok)
DHD_INFO(("CLKCTL: turned ON\n")); DHD_INFO(("CLKCTL: turned ON\n"));
#if defined(DHD_DEBUG) #if defined(DHD_DEBUG)
if (bus->alp_only == true) { if (bus->alp_only != true) {
#if !defined(BCMLXSDMMC)
if (!SBSDIO_ALPONLY(clkctl)) {
DHD_ERROR(("%s: HT Clock, when ALP Only\n",
__func__));
}
#endif /* !defined(BCMLXSDMMC) */
} else {
if (SBSDIO_ALPONLY(clkctl)) { if (SBSDIO_ALPONLY(clkctl)) {
DHD_ERROR(("%s: HT Clock should be on.\n", DHD_ERROR(("%s: HT Clock should be on.\n",
__func__)); __func__));
......
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