summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/host1x/bus.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-03-17 08:08:57 +1000
committerDave Airlie <airlied@redhat.com>2016-03-17 08:08:57 +1000
commit0e5dc9a8ee2f10b5d6c793675e9942c526e52411 (patch)
tree703d710ab16502c117a15f404a5a1947f2214436 /drivers/gpu/host1x/bus.c
parent86d65b7e7a0c927d07d18605c276d0f142438ead (diff)
parent341917fe2b62876599315a537b8e248e31bd1366 (diff)
downloadlinux-0e5dc9a8ee2f10b5d6c793675e9942c526e52411.tar.bz2
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()
Diffstat (limited to 'drivers/gpu/host1x/bus.c')
-rw-r--r--drivers/gpu/host1x/bus.c4
1 files changed, 3 insertions, 1 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,
if (of_match_node(driver->subdevs, np) &&
of_device_is_available(np)) {
err = host1x_subdev_add(device, np);
- if (err < 0)
+ if (err < 0) {
+ of_node_put(np);
return err;
+ }
}
}