mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: move platform_gk20a.h to linux
Move gk20a/platform_gk20a.h to linux specific directory as common/linux/platform_gk20a.h since this file includes all linux specific stuff Fix #includes in all the files to include this file with correct path Remove #include of this file where it is no more needed Fix gk20a_init_sim_support() to receive struct gk20a as parameter instead of receiving linux specific struct platform_device NVGPU-316 Change-Id: I5ec08e776b753af4d39d11c11f6f068be2ac236f Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1589938 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
2d71b3efae
commit
25440e63d2
@@ -28,7 +28,6 @@
|
||||
#include <nvgpu/linux/vm.h>
|
||||
|
||||
#include "gk20a.h"
|
||||
#include "platform_gk20a.h"
|
||||
|
||||
#include <nvgpu/hw/gk20a/hw_sim_gk20a.h>
|
||||
|
||||
@@ -104,11 +103,9 @@ static int alloc_and_kmap_iopage(struct gk20a *g,
|
||||
|
||||
}
|
||||
|
||||
int gk20a_init_sim_support(struct platform_device *pdev)
|
||||
int gk20a_init_sim_support(struct gk20a *g)
|
||||
{
|
||||
int err = 0;
|
||||
struct device *dev = &pdev->dev;
|
||||
struct gk20a *g = get_gk20a(dev);
|
||||
u64 phys;
|
||||
|
||||
/* allocate sim event/msg buffers */
|
||||
|
||||
Reference in New Issue
Block a user