s390/pci: use pci_scan_root_bus
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Thu, 25 Apr 2013 12:49:48 +0000 (14:49 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 26 Apr 2013 07:07:19 +0000 (09:07 +0200)
commit1c21351b722c9101bacdb961f5b5711669c882a0
tree23410fcce9be17409aea162007f23f0ebee16a18
parentfff60fabc71c41bd1bd4beb4fdd735bb8e01096c
s390/pci: use pci_scan_root_bus

The pci config space accessors on s390 are (now) smart enough to
figure out if a pci function is available. So instead of calling
pci_create_root_bus and then pci_scan_single_device for each
available function just call pci_scan_root_bus and let the pci core
do the scanning (via config reads on all possible functions) and
device creation.

Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci.c