mmc: core: Free all resources for the class device at ->dev_release()
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 18 Dec 2014 14:44:35 +0000 (15:44 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jan 2015 08:56:17 +0000 (09:56 +0100)
commite2d1926bad0d0cf7e4b8bf11a8efd1b5fe48893e
tree830dfb37db0d7d4eeb56b1531e78ab387e183836
parent7f133de1fbe9f496973aaaf22e830433600fa99e
mmc: core: Free all resources for the class device at ->dev_release()

To be consistent when freeing data, let's move the idr_remove() call
from mmc_free_host() into the ->dev_release() callback for the class
device.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/host.c