soc: brcmstb: Unmap sun_top_ctrl_base on errors
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 25 Apr 2016 23:08:09 +0000 (16:08 -0700)
committerArnd Bergmann <arnd@arndb.de>
Mon, 25 Apr 2016 23:13:54 +0000 (01:13 +0200)
commit8d3fd357a28e420b1e154daf1cabdaa103911c08
tree666936a84652323e1569bf3af26e0aff4c10d2f0
parentd3829c1b8443a83324419eb129c7e4c780bf435f
soc: brcmstb: Unmap sun_top_ctrl_base on errors

Do not leak a ioremap()'d cookie around, unmaping it in case of errors

Fixes: cef4bafcea2c ("soc: brcmstb: add SoC driver to brcmstb")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/brcmstb/common.c