soc/tegra: flowctrl: Fix error handling
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Tue, 11 Apr 2017 03:40:41 +0000 (05:40 +0200)
committerThierry Reding <treding@nvidia.com>
Tue, 13 Jun 2017 14:47:44 +0000 (16:47 +0200)
commitda1dbec1be2b54c16649e33e479708a55156e311
tree169558a6fc4d063aa0a47c3099670ab261e37db4
parente7149a7a3fc4ee6785f17961738f40ce1266d8d0
soc/tegra: flowctrl: Fix error handling

It is likely that returning returned by 'devm_ioremap_resource()' is
expected here instead of something related to 'base' which should be a
valid pointer at this point.

Fixes: 841fd94c43a4 ("soc/tegra: flowctrl: Add basic platform driver")

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/flowctrl.c