Skip to content

Commit

Permalink
[S390] 3215: Handle special console device.
Browse files Browse the repository at this point in the history
The early console device is special as it already has all needed data
set and raw3215[0] allocated from con3215_init(). Therefore, it needs
special treatment in the probe function so it can be matched with the
3215 driver which is already owning it.

Signed-off-by: Cornelia Huck <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
  • Loading branch information
cohuck authored and Martin Schwidefsky committed Oct 12, 2007
1 parent c41fbc6 commit a2e5380
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/s390/char/con3215.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a2e5380

Please sign in to comment.