]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita8340ac0624bc620ac7c88e078af5787105aabb5
tree95169cb4d749ad75fe26dc37b2af4f9dd32604e6
parentc3c01c16a4159ca1801f7bc5afd035afbdfd8523
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: 338f7a55b92e ("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