rewrite the device subsystem interfaces (#48)
[lunaix-os.git] / lunaix-os / hal / term / console.c
index 1c2a2cf83497d6fbb7521f5f551dacbd47042fac..ea479a31c7716e6356dfe2c1ec943629dc0ad7aa 100644 (file)
@@ -35,7 +35,7 @@ setup_default_tty()
 
     assert(device_addalias(NULL, dev_meta(dev), "tty"));
     
-    if (!device_get_capability(dev, TERMIOS_CAP)) {
+    if (!device_get_potens(dev, potens(TERMPORT))) {
         FATAL("not a terminal device: %s", console_dev);
     }