projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
media: atmel-isi: move of_node_put() to cover success branch as well
[linux-2.6-microblaze.git]
/
drivers
/
media
/
platform
/
atmel
/
atmel-isi.c
diff --git
a/drivers/media/platform/atmel/atmel-isi.c
b/drivers/media/platform/atmel/atmel-isi.c
index
85fc7b9
..
e8db4df
100644
(file)
--- a/
drivers/media/platform/atmel/atmel-isi.c
+++ b/
drivers/media/platform/atmel/atmel-isi.c
@@
-1111,10
+1111,9
@@
static int isi_graph_parse(struct atmel_isi *isi, struct device_node *node)
return -EINVAL;
remote = of_graph_get_remote_port_parent(ep);
- if (!remote) {
- of_node_put(ep);
+ of_node_put(ep);
+ if (!remote)
return -EINVAL;
- }
/* Remote node to connect */
isi->entity.node = remote;