Skip to content

Commit

Permalink
mmc: cb710: clear irq handler on init() error path
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Michał Mirosław authored and Chris Ball committed Oct 23, 2010
1 parent 2abd4f1 commit e0780db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mmc/host/cb710-mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e0780db

Please sign in to comment.