From 50ea3aad0bb315fb272933391a7b86191e1863b2 Mon Sep 17 00:00:00 2001 From: phx Date: Mon, 3 Mar 2008 17:15:57 +0000 Subject: [PATCH] Removed the check for device_type==display in rascons_cnattach(). It is not required, because this function will be called for display-consoles only, and it allows SmartFirmware to attach a rascons console. Approved by garbled. --- sys/arch/powerpc/oea/ofw_rascons.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sys/arch/powerpc/oea/ofw_rascons.c b/sys/arch/powerpc/oea/ofw_rascons.c index 943c7eed275f..588650aade69 100644 --- a/sys/arch/powerpc/oea/ofw_rascons.c +++ b/sys/arch/powerpc/oea/ofw_rascons.c @@ -1,4 +1,4 @@ -/* $NetBSD: ofw_rascons.c,v 1.1 2007/11/26 19:58:31 garbled Exp $ */ +/* $NetBSD: ofw_rascons.c,v 1.2 2008/03/03 17:15:57 phx Exp $ */ /* * Copyright (c) 1995, 1996 Carnegie-Mellon University. @@ -28,7 +28,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ofw_rascons.c,v 1.1 2007/11/26 19:58:31 garbled Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ofw_rascons.c,v 1.2 2008/03/03 17:15:57 phx Exp $"); #include #include @@ -89,11 +89,6 @@ rascons_cnattach(void) struct rasops_info *ri = &rascons_console_screen.scr_ri; long defattr; int crow = 0; - char type[16]; - - OF_getprop(console_node, "device_type", type, sizeof(type)); - if (strcmp(type, "display") != 0) - return -1; /* get current cursor position */ OF_interpret("line#", 0, 1, &crow);