static int ob_fmc_remove(struct fmc_device *fmc) { struct ob_dev *ob = fmc_get_drvdata(fmc); zio_unregister_device(ob->hwzdev); zio_free_device(ob->hwzdev); return 0; }
static void __exit zdtc_exit(void) { zio_unregister_device(zdtc_init_dev); zio_free_device(zdtc_init_dev); zio_unregister_driver(&zdtc_zdrv); }
/* * fa_zio_exit * * It removes both device and trigger form the ZIO framework. The FMC remove * invokes this function. */ void fa_zio_exit(struct fa_dev *fa) { zio_unregister_device(fa->hwzdev); zio_free_device(fa->hwzdev); }