mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
nvpps: fix kernel compilation issue
fix compilation issue when building mttcan driver with 6.3-rc1 upstream kernel. Bug 4014315 Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Change-Id: I196e7348df4adf863b8718667b972d537877256a Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2871356 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Sandeep Trasi <strasi@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
72cf7c99c3
commit
c6c0a19357
@@ -930,7 +930,11 @@ static int nvpps_probe(struct platform_device *pdev)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 0)
|
||||
err = of_get_gpio(np, 0);
|
||||
#else
|
||||
err = of_get_named_gpio(np, "gpios", 0);
|
||||
#endif
|
||||
if (err == -EPROBE_DEFER) {
|
||||
return err;
|
||||
} else if (err < 0) {
|
||||
|
||||
Reference in New Issue
Block a user