[PATCH v2] firmware: stratix10-svc: fix wrong of_node_put() in init function

2018-12-03 Thread Nicolas Saenz Julienne
After finding a "firmware" dt node stratix10 tries to match it's compatible string with it. To do so it's calling of_find_matching_node() which already takes care of decreasing the refcount on the "firmware" node. We are then incorrectly decreasing the refcount on that node again. This patch

[PATCH v2] firmware: stratix10-svc: fix wrong of_node_put() in init function

2018-12-03 Thread Nicolas Saenz Julienne
After finding a "firmware" dt node stratix10 tries to match it's compatible string with it. To do so it's calling of_find_matching_node() which already takes care of decreasing the refcount on the "firmware" node. We are then incorrectly decreasing the refcount on that node again. This patch