Commit b433d6f8 authored by Michel Arruat's avatar Michel Arruat Committed by Federico Vaga

bugfix: deinit subsystems at remove time

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 2a4eb326
......@@ -310,8 +310,15 @@ out:
int fa_remove(struct fmc_device *fmc)
{
struct fa_dev *fa = fmc_get_drvdata(fmc);
struct fa_modlist *m;
int i = ARRAY_SIZE(mods);
while (--i >= 0) {
m = mods + i;
if (m->exit)
m->exit(fa);
}
fa_zio_exit(fa);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment