PCI: cpcihp: Add missing curly braces in cpci_configure_slot()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 25 Feb 2015 13:23:22 +0000 (16:23 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Apr 2015 08:10:10 +0000 (10:10 +0200)
commiteffe0487bf00d610a536e7beb6f5f4efda28ee10
tree34124154902efee444a7beed3a8919d78e640431
parent8dcbd92fbb1a0ab7e897f611112f912649d15b64
PCI: cpcihp: Add missing curly braces in cpci_configure_slot()

commit bc3b5b47c80da8838758731d423179262c9c36ec upstream.

I don't have this hardware but it looks like we weren't adding bridge
devices as intended.  Maybe the bridge is always the last device?

Fixes: 05b125004815 ("PCI: cpcihp: Iterate over all devices in slot, not functions 0-7")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/hotplug/cpci_hotplug_pci.c