diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-03-29 19:02:34 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-04-08 12:42:41 -0400 |
commit | e8bac374c0ed24f05bf389e1e8b5aca47f61bd3a (patch) | |
tree | 36b6e111f8706c0560ee552bc9d6e15b87fc9621 /drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |
parent | 2382a8433fddaee3baecff6ae941944850787ab7 (diff) |
gpu: nvgpu: Use device instead of platform_device
Use struct device instead of struct platform_device wherever
possible. This allows adding other bus types later.
Change-Id: I1657287a68d85a542cdbdd8a00d1902c3d6e00ed
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/1120466
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c index bac36403..aef0c9b3 100644 --- a/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fecs_trace_gk20a.c | |||
@@ -545,7 +545,7 @@ DEFINE_SIMPLE_ATTRIBUTE(gk20a_fecs_trace_debugfs_write_fops, | |||
545 | 545 | ||
546 | static void gk20a_fecs_trace_debugfs_init(struct gk20a *g) | 546 | static void gk20a_fecs_trace_debugfs_init(struct gk20a *g) |
547 | { | 547 | { |
548 | struct gk20a_platform *plat = platform_get_drvdata(g->dev); | 548 | struct gk20a_platform *plat = dev_get_drvdata(g->dev); |
549 | 549 | ||
550 | debugfs_create_file("ctxsw_trace_read", 0600, plat->debugfs, g, | 550 | debugfs_create_file("ctxsw_trace_read", 0600, plat->debugfs, g, |
551 | &gk20a_fecs_trace_debugfs_read_fops); | 551 | &gk20a_fecs_trace_debugfs_read_fops); |
@@ -557,7 +557,7 @@ static void gk20a_fecs_trace_debugfs_init(struct gk20a *g) | |||
557 | 557 | ||
558 | static void gk20a_fecs_trace_debugfs_cleanup(struct gk20a *g) | 558 | static void gk20a_fecs_trace_debugfs_cleanup(struct gk20a *g) |
559 | { | 559 | { |
560 | struct gk20a_platform *plat = platform_get_drvdata(g->dev); | 560 | struct gk20a_platform *plat = dev_get_drvdata(g->dev); |
561 | 561 | ||
562 | debugfs_remove_recursive(plat->debugfs); | 562 | debugfs_remove_recursive(plat->debugfs); |
563 | } | 563 | } |