mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
nvidia-oot: remove module * from class_create()
Remove the module pointer from the class_create() based on following change in core kernel ====== driver core: class: remove module * from class_create() The module pointer in class_create() never actually did anything, and it shouldn't have been requred to be set as a parameter even if it did something. So just remove it and fix up all callers of the function in the kernel tree at the same time. Cc: "Rafael J. Wysocki" <rafael@kernel.org> Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> ===== Bug 4276500 Change-Id: Ifa0a92a282151ce12dc4a48f4f4b5b9499d3fbd8 Signed-off-by: Shardar Mohammed <smohammed@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2976600 Tested-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
a7810cdbac
commit
4be2dd36bb
@@ -368,8 +368,13 @@ static int tegra_hv_vcpu_yield_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
major = MAJOR(vcpu_yield_pdev->vcpu_yield_dev);
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)
|
||||
vcpu_yield_class =
|
||||
class_create("tegra_hv_vcpu_yield");
|
||||
#else
|
||||
vcpu_yield_class =
|
||||
class_create(THIS_MODULE, "tegra_hv_vcpu_yield");
|
||||
#endif
|
||||
if (IS_ERR(vcpu_yield_class)) {
|
||||
pr_err("failed to create ivc class: %ld\n", PTR_ERR(vcpu_yield_class));
|
||||
result = PTR_ERR(vcpu_yield_class);
|
||||
|
||||
Reference in New Issue
Block a user