mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Remove Linux devnode fields from gk20a
Move Linux devnode related fields to a new header file os_linux.h. The class structure is defined in module.c, so move its declaration to module.h. JIRA NVGPU-38 Change-Id: I5d8920169064f4289ff61004f7f81543a9aba221 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1505927 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
2ffbdc50d8
commit
92c43deefc
@@ -30,6 +30,7 @@
|
||||
#include "gk20a/platform_gk20a.h"
|
||||
#include "ioctl_as.h"
|
||||
#include "vm_priv.h"
|
||||
#include "os_linux.h"
|
||||
|
||||
static int gk20a_as_ioctl_bind_channel(
|
||||
struct gk20a_as_share *as_share,
|
||||
@@ -253,13 +254,15 @@ static int gk20a_as_ioctl_map_buffer_compbits(
|
||||
|
||||
int gk20a_as_dev_open(struct inode *inode, struct file *filp)
|
||||
{
|
||||
struct nvgpu_os_linux *l;
|
||||
struct gk20a_as_share *as_share;
|
||||
struct gk20a *g;
|
||||
int err;
|
||||
|
||||
gk20a_dbg_fn("");
|
||||
|
||||
g = container_of(inode->i_cdev, struct gk20a, as_dev.cdev);
|
||||
l = container_of(inode->i_cdev, struct nvgpu_os_linux, as_dev.cdev);
|
||||
g = &l->g;
|
||||
|
||||
err = gk20a_as_alloc_share(g, 0, 0, &as_share);
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user