]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] Fix smsgiucv init on no iucv machines
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 5 Nov 2007 10:10:08 +0000 (11:10 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 5 Nov 2007 10:10:16 +0000 (11:10 +0100)
commit544efe844ba342063b9374666e45981230912ee1
tree84058cff756c8424c4ee06edfc3db81fbee80075
parente8cb4911012d47b57e49fa80dcded4af127bf95b
[S390] Fix smsgiucv init on no iucv machines

smsgiucv is a driver that relies on iucv to work properly. If
iucv ans smsgiucv are compiled into the kernel and run on an
lpar the following scenario happens:
iucv is initialized early as a subsystem. It checks for z/VM and
returns with EPROTONOTSUPPORT. Later smsgiucv tries to run
driver_register with iucv_bus as bus. As this bus is not
initialized the driver core and list debugging issue several
warnings and oopses.

Solution is to let smsgiucv also check for z/VM and return
EPROTONOTSUPPORT as well.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/net/smsgiucv.c