aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1999-05-10 14:01:35 +0000
committerDoug Rabson <dfr@FreeBSD.org>1999-05-10 14:01:35 +0000
commit1d3710bdf3023dbe5da10f5900876f7344ab9e91 (patch)
tree171a4bbde668ec2a54dc94e01c7b385e176ec6ab /sys/dev
parent059af14f8e813ae7b06f0795e30052cb8c520658 (diff)
downloadsrc-1d3710bdf3023dbe5da10f5900876f7344ab9e91.tar.gz
src-1d3710bdf3023dbe5da10f5900876f7344ab9e91.zip
Adjust console stuff now that makedev is no longer a macro.
Notes
Notes: svn path=/head/; revision=46894
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sio/sio.c5
-rw-r--r--sys/dev/syscons/syscons.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index 8b3630baf1b4..20354d394e54 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: sio.c,v 1.239 1999/05/09 16:56:38 peter Exp $
+ * $Id: sio.c,v 1.240 1999/05/09 20:35:02 peter Exp $
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* from: i386/isa sio.c,v 1.234
*/
@@ -2862,7 +2862,7 @@ siocnprobe(cp)
struct consdev siocons = {
NULL, NULL, siocngetc, siocncheckc, siocnputc,
- NULL, makedev(CDEV_MAJOR, 0), CN_NORMAL,
+ NULL, 0, CN_NORMAL,
};
extern struct consdev *cn_tab;
@@ -2901,6 +2901,7 @@ siocnattach(port, speed)
siocnopen(&sp, siocniobase, comdefaultrate);
splx(s);
+ siocons.cn_dev = makedev(CDEV_MAJOR, 0);
cn_tab = &siocons;
return 0;
}
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index 1f8377e66fb5..24e3d10cfbd6 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.300 1999/04/16 21:21:56 peter Exp $
+ * $Id: syscons.c,v 1.301 1999/04/27 11:14:04 phk Exp $
*/
#include "sc.h"
@@ -354,7 +354,7 @@ static cn_putc_t sccnputc;
struct consdev sc_cons = {
NULL, NULL, sccngetc, sccncheckc, sccnputc,
- NULL, makedev(CDEV_MAJOR, 0), CN_NORMAL,
+ NULL, 0, CN_NORMAL,
};
#endif /* __i386__ */
@@ -1917,6 +1917,7 @@ sccnattach(void)
}
scinit();
+ sc_cons.cn_dev = makedev(CDEV_MAJOR, 0);
cn_tab = &sc_cons;
}