mcb: Fix error path of mcb_pci_probe
authorJohannes Thumshirn <johannes.thumshirn@men.de>
Mon, 12 Jan 2015 15:26:32 +0000 (16:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Feb 2015 23:48:51 +0000 (15:48 -0800)
commita48742bce1011d2109f6d6cbda00445aee049fd4
tree39191dfa9b502119ddf9caa45a414486817232a2
parentd909f4315b99e5743041eeb01a2552fcbb125c89
mcb: Fix error path of mcb_pci_probe

If a MCB PCI Carrier device is IO mapped insted of memory-mapped (which is
currently unsupported by the upstream driver) the probe function bails out
with -ENOTSUPP.

In this case the memory of the PCI device was not unmapped.
Also rename error label to reflect what will happen at the destination (suggested
by Julia Lawall <julia.lawall@lip6.fr>.

Signed-off-by: Johannes Thumshirn <johannes.thumshirn@men.de>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mcb/mcb-pci.c