drm/lima: Add support for multiple reset lines
Some SoCs like HiKey have 2 reset lines, so update to use the devm_reset_control_array_* variant of the API so that multiple resets can be specified in DT. Cc: Qiang Yu <yuq825@gmail.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: dri-devel@lists.freedesktop.org Cc: lima@lists.freedesktop.org Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Qiang Yu <yuq825@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191001182927.70448-1-john.stultz@linaro.org
This commit is contained in:
parent
4f69851fba
commit
30abc59b48
|
@ -105,7 +105,8 @@ static int lima_clk_init(struct lima_device *dev)
|
|||
if (err)
|
||||
goto error_out0;
|
||||
|
||||
dev->reset = devm_reset_control_get_optional(dev->dev, NULL);
|
||||
dev->reset = devm_reset_control_array_get_optional_shared(dev->dev);
|
||||
|
||||
if (IS_ERR(dev->reset)) {
|
||||
err = PTR_ERR(dev->reset);
|
||||
if (err != -EPROBE_DEFER)
|
||||
|
|
Loading…
Reference in New Issue