diff options
author | Dave Airlie <airlied@redhat.com> | 2016-03-16 18:08:57 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-03-16 18:08:57 -0400 |
commit | 0e5dc9a8ee2f10b5d6c793675e9942c526e52411 (patch) | |
tree | 703d710ab16502c117a15f404a5a1947f2214436 | |
parent | 86d65b7e7a0c927d07d18605c276d0f142438ead (diff) | |
parent | 341917fe2b62876599315a537b8e248e31bd1366 (diff) |
Merge tag 'drm/tegra/for-4.6-rc1' of http://anongit.freedesktop.org/git/tegra/linux into drm-next
drm/tegra: Changes for v4.6-rc1
Only two cleanups this time around. One fixes reference counting of
device tree nodes, the other changes the return value of a function
from an unsigned int to an int to reflect that it will return error
codes.
* tag 'drm/tegra/for-4.6-rc1' of http://anongit.freedesktop.org/git/tegra/linux:
gpu: host1x: Use a signed return type for do_relocs()
gpu: host1x: bus: Add missing of_node_put()
-rw-r--r-- | drivers/gpu/host1x/bus.c | 4 | ||||
-rw-r--r-- | drivers/gpu/host1x/job.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/host1x/bus.c b/drivers/gpu/host1x/bus.c index dd2dbb9746ce..c27858ae0552 100644 --- a/drivers/gpu/host1x/bus.c +++ b/drivers/gpu/host1x/bus.c | |||
@@ -83,8 +83,10 @@ static int host1x_device_parse_dt(struct host1x_device *device, | |||
83 | if (of_match_node(driver->subdevs, np) && | 83 | if (of_match_node(driver->subdevs, np) && |
84 | of_device_is_available(np)) { | 84 | of_device_is_available(np)) { |
85 | err = host1x_subdev_add(device, np); | 85 | err = host1x_subdev_add(device, np); |
86 | if (err < 0) | 86 | if (err < 0) { |
87 | of_node_put(np); | ||
87 | return err; | 88 | return err; |
89 | } | ||
88 | } | 90 | } |
89 | } | 91 | } |
90 | 92 | ||
diff --git a/drivers/gpu/host1x/job.c b/drivers/gpu/host1x/job.c index 63bd63f3c7df..1919aab88c3f 100644 --- a/drivers/gpu/host1x/job.c +++ b/drivers/gpu/host1x/job.c | |||
@@ -225,7 +225,7 @@ unpin: | |||
225 | return 0; | 225 | return 0; |
226 | } | 226 | } |
227 | 227 | ||
228 | static unsigned int do_relocs(struct host1x_job *job, struct host1x_bo *cmdbuf) | 228 | static int do_relocs(struct host1x_job *job, struct host1x_bo *cmdbuf) |
229 | { | 229 | { |
230 | int i = 0; | 230 | int i = 0; |
231 | u32 last_page = ~0; | 231 | u32 last_page = ~0; |