gpu: host1x: Fix error handling
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 10 Apr 2017 20:29:22 +0000 (22:29 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 15 Jun 2017 12:06:49 +0000 (14:06 +0200)
commit59e04bc20de4bd1bd5bfa810bf04a4e50a27b9c1
tree95169cb4d749ad75fe26dc37b2af4f9dd32604e6
parentd758619ba6a5d250914b06b2b923a65e48bdd002
gpu: host1x: Fix error handling

If 'devm_reset_control_get' returns an error, then we erroneously return
success because error code is taken from 'host->clk' instead of
'host->rst'.

Fixes: b386c6b73ac6 ("gpu: host1x: Support module reset")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170410202922.17665-1-christophe.jaillet@wanadoo.fr
drivers/gpu/host1x/dev.c