mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: Move is_fmodel to struct gk20a
Copy is_fmodel to struct gk20a at probe time, and access it from gk20a instead of platform_gk20a. JIRA NVGPU-16 Change-Id: Ib8d793ea2b02b62da3bfdbb6372d9927658b7ec6 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1463540 Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
15e9b433f3
commit
6df49a63ca
@@ -18,6 +18,7 @@
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/pm_runtime.h>
|
||||
#include <linux/pm_qos.h>
|
||||
#include <soc/tegra/chip-id.h>
|
||||
|
||||
#include <nvgpu/kmem.h>
|
||||
#include <nvgpu/bug.h>
|
||||
@@ -574,8 +575,8 @@ int vgpu_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
gk20a->dev = dev;
|
||||
|
||||
gk20a->is_fmodel = platform->is_fmodel;
|
||||
if (tegra_platform_is_linsim() || tegra_platform_is_vdk())
|
||||
gk20a->is_fmodel = true;
|
||||
|
||||
nvgpu_kmem_init(gk20a);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user