diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/imx_esdhc.c | 2 | ||||
-rw-r--r-- | drivers/mtd/spi/imx_spi_nor_m25pxx.c | 2 | ||||
-rw-r--r-- | drivers/net/mxc_fec.c | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/drivers/mmc/imx_esdhc.c b/drivers/mmc/imx_esdhc.c index ab7f585..b242755 100644 --- a/drivers/mmc/imx_esdhc.c +++ b/drivers/mmc/imx_esdhc.c @@ -168,7 +168,7 @@ esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data) { uint xfertyp, mixctrl; uint irqstat; - u32 tmp, sysctl_restore; + u32 tmp, sysctl_restore = 0; struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; volatile struct fsl_esdhc *regs = (struct fsl_esdhc *)cfg->esdhc_base; diff --git a/drivers/mtd/spi/imx_spi_nor_m25pxx.c b/drivers/mtd/spi/imx_spi_nor_m25pxx.c index 9ad2262..492d0fb 100644 --- a/drivers/mtd/spi/imx_spi_nor_m25pxx.c +++ b/drivers/mtd/spi/imx_spi_nor_m25pxx.c @@ -137,6 +137,7 @@ static int wait_till_ready(struct spi_flash *flash) return 1; } +#ifdef DEBUG static int erase_chip(struct spi_flash *flash) { /* Wait until finished previous write command. */ @@ -156,6 +157,7 @@ static int erase_chip(struct spi_flash *flash) return 0; } +#endif static int erase_sector(struct spi_flash *flash, u32 offset) { diff --git a/drivers/net/mxc_fec.c b/drivers/net/mxc_fec.c index 4f9f34d..071c795 100644 --- a/drivers/net/mxc_fec.c +++ b/drivers/net/mxc_fec.c @@ -299,7 +299,9 @@ static void setFecDuplexSpeed(volatile fec_t *fecp, unsigned char addr, { unsigned short val = 0; int ret; +#ifdef CONFIG_PHY_MICREL_KSZ9021 int cnt; +#endif #ifdef CONFIG_MX28 /* Dummy read with delay to get phy start working */ |