net: dsa: bcm_sf2: fix unmapping registers in case of errors
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 26 Nov 2014 02:08:48 +0000 (18:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2014 17:03:56 +0000 (12:03 -0500)
In case we fail to ioremap() one of our registers, we would be leaking
existing mappings, unwind those accordingly on errors.

Fixes: 246d7f773c13 ("net: dsa: add Broadcom SF2 switch driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found