aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/core
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-01-26 16:26:31 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2016-02-29 11:02:52 +0100
commit358399f8caa3683c045bf297878b6401062a7dcb (patch)
treeaca8c1b1580be655c682d0087a8c17c797026964 /drivers/mmc/core
parent4e6a2ef9418cc48ecc5664c6549f52ad22330bc1 (diff)
downloadlinux-358399f8caa3683c045bf297878b6401062a7dcb.tar.gz
mmc: omap_hsmmc: don't print uninitialized variables
When DT based probing is used but the DMA request fails, the driver will print uninitialized stack data from the rx_req and tx_req variables, as indicated by this warning: drivers/mmc/host/omap_hsmmc.c: In function 'omap_hsmmc_probe': drivers/mmc/host/omap_hsmmc.c:2162:3: warning: 'rx_req' may be used uninitialized in this function [-Wmaybe-uninitialized] dev_err(mmc_dev(host->mmc), "unable to obtain RX DMA engine channel %u\n", rx_req); This removes the DMA request line number from the warning, which is the easiest solution and won't hurt us any more as we are planning to remove the legacy code path anyway. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Tony Lindgren <tony@atomide.com> Reviewed-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core')
0 files changed, 0 insertions, 0 deletions