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
@@ -239,7 +239,11 @@ static int __init tegra_camchar_init(struct tegra_ivc_driver *drv)
|
||||
}
|
||||
tegra_camchar_major_number = MAJOR(start);
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0)
|
||||
tegra_camchar_class = class_create("camchar_class");
|
||||
#else
|
||||
tegra_camchar_class = class_create(THIS_MODULE, "camchar_class");
|
||||
#endif
|
||||
if (IS_ERR(tegra_camchar_class)) {
|
||||
pr_alert("camchar: failed to create class\n");
|
||||
ret = PTR_ERR(tegra_camchar_class);
|
||||
|
||||
Reference in New Issue
Block a user