Index: libcio/open.c
===================================================================
--- libcio/open.c	(revision fa3880436faee3a802167a6643a177727fdf94ea)
+++ libcio/open.c	(revision 48102540da3f449689e84a66567b30a9a3cca13f)
@@ -19,8 +19,8 @@
 static struct devtabl devtabl[] = {
 
-	{ "con:", &condev,  (io_arg)2 },	/* console device */
-	{ "CON:", &condev,  (io_arg)2 },
-
-	{      0, &filedev,      NULL }		/* this MUST be the last entry */
+	{ "con:", &condev,  &devtabl[0] },	/* console device */
+	{ "CON:", &condev,  &devtabl[1] },
+
+	{      0, &filedev,      NULL   }	/* this MUST be the last entry */
 };
 
