Deleted Added
full compact
27c27
< __FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_console.c 133096 2004-08-04 00:21:19Z gad $");
---
> __FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_console.c 136454 2004-10-12 21:23:33Z phk $");
97a98,101
> /*
> * XXX: This is a hack and it may result in two /dev/ttya
> * XXX: devices on platforms where the sab driver works.
> */
120c124,132
< tp = ofw_tp = dev->si_tty = ttymalloc(ofw_tp);
---
> /*
> * XXX: BAD, should happen at attach time
> */
> if (dev->si_tty == NULL) {
> ofw_tp = ttyalloc();
> dev->si_tty = ofw_tp;
> ofw_tp->t_dev = dev;
> }
> tp = dev->si_tty;
163c175
< tp = ofw_tp;
---
> tp = dev->si_tty;