Skip to content

Commit 0e5dc9a

Browse files
committed
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()
2 parents 86d65b7 + 341917f commit 0e5dc9a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

drivers/gpu/host1x/bus.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ static int host1x_device_parse_dt(struct host1x_device *device,
8383
if (of_match_node(driver->subdevs, np) &&
8484
of_device_is_available(np)) {
8585
err = host1x_subdev_add(device, np);
86-
if (err < 0)
86+
if (err < 0) {
87+
of_node_put(np);
8788
return err;
89+
}
8890
}
8991
}
9092

drivers/gpu/host1x/job.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ static unsigned int pin_job(struct host1x_job *job)
225225
return 0;
226226
}
227227

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)
229229
{
230230
int i = 0;
231231
u32 last_page = ~0;

0 commit comments

Comments
 (0)