sio(4) - Fix double make_dev if used as console
authorAlex Hornung <ahornung@gmail.com>
Mon, 7 Sep 2009 11:34:45 +0000 (12:34 +0100)
committerAlex Hornung <ahornung@gmail.com>
Mon, 7 Sep 2009 11:43:38 +0000 (12:43 +0100)
commit879172271d5105425ca7df8c599f59b035bfcb8e
tree1f349cca2fc3c6d14db8c9482047811b6ba1073d
parent727afe75ef752829158e906c5b86991478fece53
sio(4) - Fix double make_dev if used as console

* sio was calling another make_dev for ttyd0 if it was being used as
  console. This is no longer valid with devfs, so we look for the
  existing ttyd0, as it must exist already if the device has been
  attached.

Dragonfly-bug: http://bugs.dragonflybsd.org/issue1485
Reported-by: Hasso Tepper, Jordan Gordeev
sys/dev/serial/sio/sio.c