Commit 59b0b70f authored by Dave Airlie's avatar Dave Airlie

Merge tag 'drm-atmel-hlcdc-fixes/for-4.7-rc5' of github.com:bbrezillon/linux-at91 into drm-fixes

Two bug fixes for the atmel-hlcdc driver.

* tag 'drm-atmel-hlcdc-fixes/for-4.7-rc5' of github.com:bbrezillon/linux-at91:
  drm: atmel-hlcdc: Fix OF graph parsing
  drm: atmel-hlcdc: actually disable scaling when no scaling is required
parents f762bfda 0b1e1eb7
...@@ -266,9 +266,10 @@ int atmel_hlcdc_create_outputs(struct drm_device *dev) ...@@ -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) ...@@ -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;
......
...@@ -339,6 +339,8 @@ atmel_hlcdc_plane_update_pos_and_size(struct atmel_hlcdc_plane *plane, ...@@ -339,6 +339,8 @@ atmel_hlcdc_plane_update_pos_and_size(struct atmel_hlcdc_plane *plane,
atmel_hlcdc_layer_update_cfg(&plane->layer, 13, 0xffffffff, atmel_hlcdc_layer_update_cfg(&plane->layer, 13, 0xffffffff,
factor_reg); factor_reg);
} else {
atmel_hlcdc_layer_update_cfg(&plane->layer, 13, 0xffffffff, 0);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment