[S390] cio: fix drvdata usage for the console subchannel
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Fri, 18 Dec 2009 16:43:15 +0000 (17:43 +0100)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Fri, 18 Dec 2009 16:43:31 +0000 (17:43 +0100)
commitffa8d2a3e80a3f0dee9886947dbd506d2bb226d2
tree984a55405b44538777701596552dc1c50510bb1c
parent70ee9518cfc8baec618e69e4ef22566dcb2f29d3
[S390] cio: fix drvdata usage for the console subchannel

Using dev_set_drvdata prior to device_register will force the driver core
to kmalloc its private data. Since we use this for the console subchannel
lets set the drvdata before taking the subchannels spinlock.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device.c