diff options
-rw-r--r-- | isys/isys.c | 3 | ||||
-rw-r--r-- | isys/probe.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/isys/isys.c b/isys/isys.c index 17b48c72b..b787f2b92 100644 --- a/isys/isys.c +++ b/isys/isys.c @@ -862,7 +862,10 @@ static PyObject * probedListScsi(probedListObject * o, PyObject * args) { static PyObject * probedListDasd(probedListObject * o, PyObject * args) { if (!PyArg_ParseTuple(args, "")) return NULL; + +#if defined (__s390__) || defined (__s390x__) kdFindDasdList(&o->list, 0); +#endif Py_INCREF(Py_None); return Py_None; diff --git a/isys/probe.c b/isys/probe.c index 149a73a3b..39438a1e8 100644 --- a/isys/probe.c +++ b/isys/probe.c @@ -403,6 +403,7 @@ bye: return val; } +#if defined (__s390__) || defined (__s390x__) int kdFindDasdList(struct knownDevices * devices, int code) { /* patch for s390 by Oliver Paukstadt <oliver.paukstadt@millenux.com> */ /* based upon code by Erik Tews <erik.tews@gmx.net> */ @@ -439,6 +440,7 @@ int kdFindDasdList(struct knownDevices * devices, int code) { sortDevices); return 0; } +#endif struct knownDevices kdInit(void) { struct knownDevices kd; |