linux/drivers/mmc/host
Roland Stigge 073350f7b5 mmc: mmc_spi: Fix return value evaluation of irq_of_parse_and_map()
When irq_of_parse_and_map() returns an error, it does as zero. But in
mmc_spi_get_pdata(), the error return case is compared against NO_IRQ.
This might work where NO_IRQ is zero (defaults to zero when undefined,
as on MIPS) but not where NO_IRQ is different, e.g. on ARM where it's -1.

This patch changes to comparison with 0 which is the error return value
of irq_of_parse_and_map().

Tested on ARM that mmc_spi is working now.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
2013-02-24 14:37:10 -05:00
..
android-goldfish.c mmc: goldfish: emulated MMC device 2013-02-24 14:37:04 -05:00
atmel-mci-regs.h mmc: atmel-mci: AP700x PDC is not connected to MCI 2012-10-03 10:05:23 -04:00
atmel-mci.c ARM: arm-soc: Header cleanups 2012-12-12 11:45:16 -08:00
au1xmmc.c mmc: remove use of __devexit 2012-11-28 12:28:18 -08:00
bfin_sdh.c mmc: remove use of __devexit 2012-11-28 12:28:18 -08:00
cb710-mmc.c mmc: remove use of __devexit 2012-11-28 12:28:18 -08:00
cb710-mmc.h
davinci_mmc.c MMC highlights for 3.7: 2012-10-10 10:58:42 +09:00
dw_mmc-exynos.c mmc: dw_mmc: exynos: Remove code for wp-gpios 2013-02-24 14:36:54 -05:00
dw_mmc-pci.c Drivers: mmc: remove __dev* attributes. 2013-01-03 15:57:14 -08:00
dw_mmc-pltfm.c Drivers: mmc: remove __dev* attributes. 2013-01-03 15:57:14 -08:00
dw_mmc-pltfm.h mmc: remove use of __devexit 2012-11-28 12:28:18 -08:00
dw_mmc.c mmc: dw_mmc: Remove DW_MCI_QUIRK_NO_WRITE_PROTECT 2013-02-24 14:36:55 -05:00
dw_mmc.h mmc: dw_mmc: add support for implementation specific callbacks 2012-10-03 10:05:19 -04:00
jz4740_mmc.c mmc: remove use of __devexit 2012-11-28 12:28:18 -08:00
Kconfig mmc: goldfish: emulated MMC device 2013-02-24 14:37:04 -05:00
Makefile mmc: goldfish: emulated MMC device 2013-02-24 14:37:04 -05:00
mmc_spi.c mmc: remove use of __devexit 2012-11-28 12:28:18 -08:00
mmci.c Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm 2012-12-12 11:30:02 -08:00
mmci.h ARM: 7562/2: MMCI: fetch pinctrl handle and set default state 2012-11-04 10:31:46 +00:00
msm_sdcc.c ARM: msm: move platform_data definitions 2012-09-14 11:17:35 +02:00
msm_sdcc.h
mvsdio.c mmc: mvsdio: add pinctrl integration 2013-02-24 14:36:42 -05:00
mvsdio.h
mxcmmc.c ARM: arm-soc: Cleanups on various subarchitectures 2012-12-12 11:51:39 -08:00
mxs-mmc.c mmc: mxs-mmc: Fix warning due to incorrect type 2013-02-24 14:36:51 -05:00
of_mmc_spi.c mmc: mmc_spi: Fix return value evaluation of irq_of_parse_and_map() 2013-02-24 14:37:10 -05:00
omap.c ARM: arm-soc: Header cleanups 2012-12-12 11:45:16 -08:00
omap_hsmmc.c ARM: arm-soc: Header cleanups 2012-12-12 11:45:16 -08:00
pxamci.c mmc: remove use of __devinit 2012-11-28 12:28:18 -08:00
pxamci.h
rtsx_pci_sdmmc.c mmc: rtsx: Call MFD hook to switch output voltage 2013-01-27 01:29:57 +01:00
s3cmci.c mmc: remove use of __devexit 2012-11-28 12:28:18 -08:00
s3cmci.h
sdhci-acpi.c Drivers: mmc: remove __dev* attributes. 2013-01-03 15:57:14 -08:00
sdhci-bcm2835.c mmc: sdhci-pltfm: Add a common clk API implementation of get_timeout_clock 2013-02-24 14:37:09 -05:00
sdhci-cns3xxx.c mmc: remove use of __devexit 2012-11-28 12:28:18 -08:00
sdhci-dove.c Driver core updates for 3.8-rc1 2012-12-11 13:13:55 -08:00
sdhci-esdhc-imx.c mmc: sdhci-pltfm: Add a common clk API implementation of get_timeout_clock 2013-02-24 14:37:09 -05:00
sdhci-esdhc.h mmc: sdhci-esdhc: break out early if clock is 0 2012-09-04 13:58:06 -04:00
sdhci-of-esdhc.c Driver core updates for 3.8-rc1 2012-12-11 13:13:55 -08:00
sdhci-of-hlwd.c mmc: remove use of __devexit 2012-11-28 12:28:18 -08:00
sdhci-pci-data.c
sdhci-pci.c mmc: sdhci: rename platform_8bit_width to platform_bus_width 2013-02-24 14:37:02 -05:00
sdhci-pltfm.c mmc: sdhci-pltfm: Add a common clk API implementation of get_timeout_clock 2013-02-24 14:37:09 -05:00
sdhci-pltfm.h mmc: sdhci-pltfm: Add a common clk API implementation of get_timeout_clock 2013-02-24 14:37:09 -05:00
sdhci-pxav2.c mmc: sdhci-pltfm: Add a common clk API implementation of get_timeout_clock 2013-02-24 14:37:09 -05:00
sdhci-pxav3.c mmc: sdhci-pltfm: Add a common clk API implementation of get_timeout_clock 2013-02-24 14:37:09 -05:00
sdhci-s3c.c mmc: sdhci: rename platform_8bit_width to platform_bus_width 2013-02-24 14:37:02 -05:00
sdhci-spear.c Driver core updates for 3.8-rc1 2012-12-11 13:13:55 -08:00
sdhci-tegra.c mmc: sdhci: rename platform_8bit_width to platform_bus_width 2013-02-24 14:37:02 -05:00
sdhci.c mmc: sdhci: update signal voltage switch code 2013-02-24 14:37:09 -05:00
sdhci.h mmc: sdhci: rename platform_8bit_width to platform_bus_width 2013-02-24 14:37:02 -05:00
sdricoh_cs.c
sh_mmcif.c mmc: sh_mmcif: simplify IRQ processing 2013-02-11 13:28:45 -05:00
sh_mobile_sdhi.c Driver core updates for 3.8-rc1 2012-12-11 13:13:55 -08:00
tifm_sd.c
tmio_mmc.c mmc: remove use of __devexit 2012-11-28 12:28:18 -08:00
tmio_mmc.h mmc: tmio_mmc: remove unused sdio_irq_enabled flag 2012-03-27 12:20:17 -04:00
tmio_mmc_dma.c Merge branch 'next' of git://git.infradead.org/users/vkoul/slave-dma 2012-03-29 15:34:57 -07:00
tmio_mmc_pio.c mmc: remove unncessary mmc_gpio_free_cd() call from slot-gpio users 2013-02-11 12:51:23 -05:00
ushc.c
via-sdmmc.c mmc: remove use of __devexit 2012-11-28 12:28:18 -08:00
vub300.c mmc: vub300: add missing usb_put_dev 2012-12-06 13:55:03 -05:00
wbsd.c mmc: remove use of __devexit 2012-11-28 12:28:18 -08:00
wbsd.h
wmt-sdmmc.c mmc: vt8500: Remove erroneous __exitp in wmt_mci_driver 2013-02-24 14:36:56 -05:00