diff options
| -rw-r--r-- | drivers/staging/greybus/arche-platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c index e36ee984485b..34307ac3f255 100644 --- a/drivers/staging/greybus/arche-platform.c +++ b/drivers/staging/greybus/arche-platform.c | |||
| @@ -128,6 +128,7 @@ int arche_platform_change_state(enum arche_platform_state state, | |||
| 128 | pdev = of_find_device_by_node(np); | 128 | pdev = of_find_device_by_node(np); |
| 129 | if (!pdev) { | 129 | if (!pdev) { |
| 130 | pr_err("arche-platform device not found\n"); | 130 | pr_err("arche-platform device not found\n"); |
| 131 | of_node_put(np); | ||
| 131 | return -ENODEV; | 132 | return -ENODEV; |
| 132 | } | 133 | } |
| 133 | 134 | ||
