diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2008-01-23 09:05:58 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-01-28 08:13:26 -0500 |
commit | 2687bd38573ff6f10d13f60c5c3576cce9cf260d (patch) | |
tree | d05e26158e7c8e9b50fbb7fceca2dac4c91c3996 /arch/arm/mach-pxa/spitz.c | |
parent | ca4d6cfcee0cb2d25c0eb3b0172ecc6f223133ef (diff) |
[ARM] pxa: fix mci_init functions returning -1
Fix all those PXA mci_init functions which return -1 rather than
propagating the error code to the higher levels. Remove the silly
set_irq_type() calls as well - use the flags for request_irq()
instead.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pxa/spitz.c')
-rw-r--r-- | arch/arm/mach-pxa/spitz.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-pxa/spitz.c b/arch/arm/mach-pxa/spitz.c index bb4b65d352c9..5078edeadf96 100644 --- a/arch/arm/mach-pxa/spitz.c +++ b/arch/arm/mach-pxa/spitz.c | |||
@@ -374,12 +374,10 @@ static int spitz_mci_init(struct device *dev, irq_handler_t spitz_detect_int, vo | |||
374 | err = request_irq(SPITZ_IRQ_GPIO_nSD_DETECT, spitz_detect_int, | 374 | err = request_irq(SPITZ_IRQ_GPIO_nSD_DETECT, spitz_detect_int, |
375 | IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, | 375 | IRQF_DISABLED | IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING, |
376 | "MMC card detect", data); | 376 | "MMC card detect", data); |
377 | if (err) { | 377 | if (err) |
378 | printk(KERN_ERR "spitz_mci_init: MMC/SD: can't request MMC card detect IRQ\n"); | 378 | printk(KERN_ERR "spitz_mci_init: MMC/SD: can't request MMC card detect IRQ\n"); |
379 | return -1; | ||
380 | } | ||
381 | 379 | ||
382 | return 0; | 380 | return err; |
383 | } | 381 | } |
384 | 382 | ||
385 | static void spitz_mci_setpower(struct device *dev, unsigned int vdd) | 383 | static void spitz_mci_setpower(struct device *dev, unsigned int vdd) |