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.
This commit is contained in:
parent
133f451fc4
commit
50ea3aad0b
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/buf.h>
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue