mmc: cb710: clear irq handler on init() error path
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sun, 21 Mar 2010 06:44:34 +0000 (07:44 +0100)
committerChris Ball <cjb@laptop.org>
Sat, 23 Oct 2010 13:11:20 +0000 (21:11 +0800)
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/cb710-mmc.c

index 5374b6b..2299afc 100644 (file)
@@ -743,6 +743,7 @@ static int __devinit cb710_mmc_init(struct platform_device *pdev)
 err_free_mmc:
        dev_dbg(cb710_slot_dev(slot), "mmc_add_host() failed: %d\n", err);
 
+       cb710_set_irq_handler(slot, NULL);
        mmc_free_host(mmc);
        return err;
 }