diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 086f756b..156d33ed 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -168,7 +168,7 @@ static inline void set_gk20a(struct platform_device *pdev, struct gk20a *gk20a) | |||
168 | gk20a_get_platform(&pdev->dev)->g = gk20a; | 168 | gk20a_get_platform(&pdev->dev)->g = gk20a; |
169 | } | 169 | } |
170 | 170 | ||
171 | static const struct file_operations gk20a_channel_ops = { | 171 | const struct file_operations gk20a_channel_ops = { |
172 | .owner = THIS_MODULE, | 172 | .owner = THIS_MODULE, |
173 | .release = gk20a_channel_release, | 173 | .release = gk20a_channel_release, |
174 | .open = gk20a_channel_open, | 174 | .open = gk20a_channel_open, |
@@ -1280,23 +1280,6 @@ fail: | |||
1280 | return err; | 1280 | return err; |
1281 | } | 1281 | } |
1282 | 1282 | ||
1283 | struct channel_gk20a *gk20a_get_channel_from_file(int fd) | ||
1284 | { | ||
1285 | struct channel_gk20a *ch; | ||
1286 | struct file *f = fget(fd); | ||
1287 | if (!f) | ||
1288 | return NULL; | ||
1289 | |||
1290 | if (f->f_op != &gk20a_channel_ops) { | ||
1291 | fput(f); | ||
1292 | return NULL; | ||
1293 | } | ||
1294 | |||
1295 | ch = (struct channel_gk20a *)f->private_data; | ||
1296 | fput(f); | ||
1297 | return ch; | ||
1298 | } | ||
1299 | |||
1300 | static int gk20a_pm_railgate(struct device *dev) | 1283 | static int gk20a_pm_railgate(struct device *dev) |
1301 | { | 1284 | { |
1302 | struct gk20a_platform *platform = dev_get_drvdata(dev); | 1285 | struct gk20a_platform *platform = dev_get_drvdata(dev); |