Commit 62898528 authored by Federico Vaga's avatar Federico Vaga

kernel: add comment about the revert reason

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 40e31179
......@@ -598,6 +598,10 @@ void spec_fmc_destroy(struct spec_dev *spec)
spec_irq_exit(spec->fmc);
spec_i2c_exit(spec->fmc);
put_device(&spec->fmc->dev);
/*
* Do not do `kfree(spec->fmc);` because it is already done by
* the fmc-bus
*/
spec->fmc = NULL;
spec->flags &= ~SPEC_FLAG_FMC_REGISTERED;
}
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