mmc: cb710: clear irq handler on init() error path

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
Michał Mirosław 2010-03-21 07:44:34 +01:00 committed by Chris Ball
parent 2abd4f1a43
commit e0780db9f8

View 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;
}