aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ofw
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-10-27 11:45:31 +0000
committerEd Schouten <ed@FreeBSD.org>2008-10-27 11:45:31 +0000
commitc8978106d00ca40b7e2a13119de66c3b0f8e4771 (patch)
tree5e7a8425eb9de53532de6344a7ab1344bd577cc5 /sys/dev/ofw
parent2e9f7f6840383b5cb8c03e35ab8622c81e4fdc1d (diff)
Notes
Diffstat (limited to 'sys/dev/ofw')
-rw-r--r--sys/dev/ofw/ofw_console.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/ofw/ofw_console.c b/sys/dev/ofw/ofw_console.c
index bec52d670e56..493bb7836664 100644
--- a/sys/dev/ofw/ofw_console.c
+++ b/sys/dev/ofw/ofw_console.c
@@ -60,7 +60,6 @@ static struct ttydevsw ofw_ttydevsw = {
.tsw_outwakeup = ofwtty_outwakeup,
};
-static struct tty *ofw_tp = NULL;
static int polltime;
static struct callout_handle ofw_timeouthandle
= CALLOUT_HANDLE_INITIALIZER(&ofw_timeouthandle);
@@ -186,8 +185,7 @@ ofw_cninit(struct consdev *cp)
{
/* XXX: This is the alias, but that should be good enough */
- sprintf(cp->cn_name, "ofwcons");
- cp->cn_tp = ofw_tp;
+ strcpy(cp->cn_name, "ofwcons");
}
static void