video: rockchip: rve: fixup rmmod crash

Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I832fcc9f4cd569232325ea62da95a641eaeb2e52
This commit is contained in:
Li Huang
2022-04-13 11:21:16 +08:00
committed by Tao Huang
parent 59bfbc5d42
commit 31443cb761
2 changed files with 1 additions and 3 deletions

View File

@@ -261,8 +261,6 @@ struct rve_pending_ctx_manager {
};
struct rve_drvdata_t {
struct miscdevice miscdev;
struct rve_fence_context *fence_ctx;
/* used by rve2's mmu lock */

View File

@@ -762,7 +762,7 @@ static void __exit rve_exit(void)
platform_driver_unregister(&rve_driver);
misc_deregister(&(rve_drvdata->miscdev));
misc_deregister(&rve_dev);
kfree(rve_drvdata);
}