s390/pci: fix hotplug module init
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Thu, 31 Jan 2013 18:55:17 +0000 (19:55 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 14 Feb 2013 14:55:17 +0000 (15:55 +0100)
commit53923354d69e4748506bfee932b7c6b309a15c21
tree3d6e2d0fac4f26f53cbff549ad31b0032006c99d
parentadd09d61fee72d7a346051332b6d99f18989504c
s390/pci: fix hotplug module init

Loading the pci hotplug module when no devices are present will fail
but unfortunately some hotplug callbacks stay registered to the pci
bus level. Fix this by not letting module loading fail when no pci
devices are present and provide proper {de}registration functions
for these callbacks.

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/include/asm/pci.h
arch/s390/pci/pci.c
drivers/pci/hotplug/s390_pci_hpc.c