The patch which moved libpciaccess initialization to one place caused
regression - we were not able to run on system with no PCI bus, like
s390(x).
ret = -1;
}
+#if defined __s390__ || defined __s390x_
+ /* Nothing was initialized, nothing needs to be cleaned up */
+#else
/* pci_system_cleanup returns void */
pci_system_cleanup();
+#endif
return ret;
}
udevPrivate *priv = NULL;
struct udev *udev = NULL;
int ret = 0;
+
+#if defined __s390__ || defined __s390x_
+ /* On s390(x) system there is no PCI bus.
+ * Therefore there is nothing to initialize here. */
+#else
int pciret;
if ((pciret = pci_system_init()) != 0) {
goto out;
}
}
+#endif
if (VIR_ALLOC(priv) < 0) {
virReportOOMError();