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:
parent
2abd4f1a43
commit
e0780db9f8
1 changed files with 1 additions and 0 deletions
|
@ -743,6 +743,7 @@ static int __devinit cb710_mmc_init(struct platform_device *pdev)
|
||||||
err_free_mmc:
|
err_free_mmc:
|
||||||
dev_dbg(cb710_slot_dev(slot), "mmc_add_host() failed: %d\n", err);
|
dev_dbg(cb710_slot_dev(slot), "mmc_add_host() failed: %d\n", err);
|
||||||
|
|
||||||
|
cb710_set_irq_handler(slot, NULL);
|
||||||
mmc_free_host(mmc);
|
mmc_free_host(mmc);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue