]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/s390/char/con3215.c
[S390] 3215: Handle special console device.
[linux-2.6-omap-h63xx.git] / drivers / s390 / char / con3215.c
index 6000bdee4082830b87e978d0b5538e2765ff2c98..0e1f35c9ed9d4e0be6dc928d0d3bf69182799149 100644 (file)
@@ -667,6 +667,9 @@ raw3215_probe (struct ccw_device *cdev)
        struct raw3215_info *raw;
        int line;
 
+       /* Console is special. */
+       if (raw3215[0] && (cdev->dev.driver_data == raw3215[0]))
+               return 0;
        raw = kmalloc(sizeof(struct raw3215_info) +
                      RAW3215_INBUF_SIZE, GFP_KERNEL|GFP_DMA);
        if (raw == NULL)