mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
Instead of using kernel version checks in the Tegra DRM driver for the tegra_fb_ops structure, just check if the appropriate definition is defined and if so use it. This fixes building the Tegra DRM driver against some 3rd party kernels that include backports from upstream. Note that this also aligns the driver closer to the upstream code by using the same definitions that the upstream driver uses. Bug 4346767 Change-Id: I8cb40899d0bf7cdc233e5f4cee7b6afb6f12d015 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3027832 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>