|
@@ -266,9 +266,10 @@ int atmel_hlcdc_create_outputs(struct drm_device *dev)
|
|
|
if (!ret)
|
|
if (!ret)
|
|
|
ret = atmel_hlcdc_check_endpoint(dev, &ep);
|
|
ret = atmel_hlcdc_check_endpoint(dev, &ep);
|
|
|
|
|
|
|
|
- of_node_put(ep_np);
|
|
|
|
|
- if (ret)
|
|
|
|
|
|
|
+ if (ret) {
|
|
|
|
|
+ of_node_put(ep_np);
|
|
|
return ret;
|
|
return ret;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
for_each_endpoint_of_node(dev->dev->of_node, ep_np) {
|
|
for_each_endpoint_of_node(dev->dev->of_node, ep_np) {
|
|
@@ -276,9 +277,10 @@ int atmel_hlcdc_create_outputs(struct drm_device *dev)
|
|
|
if (!ret)
|
|
if (!ret)
|
|
|
ret = atmel_hlcdc_attach_endpoint(dev, &ep);
|
|
ret = atmel_hlcdc_attach_endpoint(dev, &ep);
|
|
|
|
|
|
|
|
- of_node_put(ep_np);
|
|
|
|
|
- if (ret)
|
|
|
|
|
|
|
+ if (ret) {
|
|
|
|
|
+ of_node_put(ep_np);
|
|
|
return ret;
|
|
return ret;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
return 0;
|