mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Use correct class for driver de-init
When removing the driver nodes make sure to use the correct class to free the dev-node. Bug 1816516 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1287641 Reviewed-on: http://git-master/r/1287647 (cherry picked from commit acf97306b4950d8397bb511784b3391a3530ff77) Change-Id: I983a2106eff6f4839c52a2e16bdd036facb501c0 Reviewed-on: http://git-master/r/1292697 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
90cfbc530e
commit
d2b851533b
@@ -1229,7 +1229,7 @@ void gk20a_user_deinit(struct device *dev, struct class *class)
|
||||
}
|
||||
|
||||
if (g->sched.node) {
|
||||
device_destroy(&nvgpu_class, g->sched.cdev.dev);
|
||||
device_destroy(class, g->sched.cdev.dev);
|
||||
cdev_del(&g->sched.cdev);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user