Module Name: src
Committed By: uwe
Date: Wed Aug 2 00:58:18 UTC 2017
Modified Files:
src/sys/dev/hpc: hpf1275a_tty.c
Log Message:
Fix the previous fix that doesn't even compile.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/hpc/hpf1275a_tty.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/hpc/hpf1275a_tty.c
diff -u src/sys/dev/hpc/hpf1275a_tty.c:1.27 src/sys/dev/hpc/hpf1275a_tty.c:1.28
--- src/sys/dev/hpc/hpf1275a_tty.c:1.27 Fri Jun 28 14:44:15 2013
+++ src/sys/dev/hpc/hpf1275a_tty.c Wed Aug 2 00:58:18 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: hpf1275a_tty.c,v 1.27 2013/06/28 14:44:15 christos Exp $ */
+/* $NetBSD: hpf1275a_tty.c,v 1.28 2017/08/02 00:58:18 uwe Exp $ */
/*
* Copyright (c) 2004 Valeriy E. Ushakov
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpf1275a_tty.c,v 1.27 2013/06/28 14:44:15 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpf1275a_tty.c,v 1.28 2017/08/02 00:58:18 uwe Exp $");
#include "opt_wsdisplay_compat.h"
@@ -307,7 +307,7 @@ hpf1275a_open(dev_t dev, struct tty *tp)
.cf_fstate = FSTATE_STAR,
};
struct lwp *l = curlwp; /* XXX */
- struct hpf1275a_softc *sc = device_private(self);
+ struct hpf1275a_softc *sc;
device_t self;
int error, s;
@@ -328,6 +328,7 @@ hpf1275a_open(dev_t dev, struct tty *tp)
return (EIO);
}
+ sc = device_private(self);
tp->t_sc = sc;
sc->sc_tp = tp;