summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-05-25 06:37:54 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-05-25 06:37:54 +0000
commit1d7dc5e6a2e9035f5991e4762929b6cf6ec25621 (patch)
tree6442945dc6ae8e6731415cb859f69ba044039155
parent6852e97bbc079dab0f42680e101ed5cea4006c55 (diff)
Kill unused cdev_pc_init().
ok kettenis@, visa@
-rw-r--r--sys/arch/amd64/amd64/conf.c8
-rw-r--r--sys/arch/arm64/arm64/conf.c8
-rw-r--r--sys/arch/i386/i386/conf.c8
-rw-r--r--sys/arch/i386/include/conf.h11
4 files changed, 4 insertions, 31 deletions
diff --git a/sys/arch/amd64/amd64/conf.c b/sys/arch/amd64/amd64/conf.c
index 0e20d4021c5..1810222d857 100644
--- a/sys/arch/amd64/amd64/conf.c
+++ b/sys/arch/amd64/amd64/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.69 2020/05/13 08:32:43 mpi Exp $ */
+/* $OpenBSD: conf.c,v 1.70 2020/05/25 06:37:52 mpi Exp $ */
/*
* Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
@@ -75,12 +75,6 @@ struct bdevsw bdevsw[] =
};
int nblkdev = nitems(bdevsw);
-/* open, close, read, write, ioctl, tty, mmap */
-#define cdev_pc_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
- dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
- dev_init(c,n,tty), ttselect, dev_init(c,n,mmap), D_TTY }
-
/* open, close, read, ioctl */
#define cdev_joy_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
diff --git a/sys/arch/arm64/arm64/conf.c b/sys/arch/arm64/arm64/conf.c
index 3d131bcfa34..acb5b904c83 100644
--- a/sys/arch/arm64/arm64/conf.c
+++ b/sys/arch/arm64/arm64/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.13 2020/05/13 08:10:03 mpi Exp $ */
+/* $OpenBSD: conf.c,v 1.14 2020/05/25 06:37:52 mpi Exp $ */
/*
* Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved.
@@ -72,12 +72,6 @@ struct bdevsw bdevsw[] =
};
int nblkdev = nitems(bdevsw);
-/* open, close, read, write, ioctl, tty, mmap */
-#define cdev_pc_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
- dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
- dev_init(c,n,tty), ttselect, dev_init(c,n,mmap), D_TTY }
-
/* open, close, read, ioctl */
#define cdev_joy_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
diff --git a/sys/arch/i386/i386/conf.c b/sys/arch/i386/i386/conf.c
index 6725dcce8d0..3fafddea4a4 100644
--- a/sys/arch/i386/i386/conf.c
+++ b/sys/arch/i386/i386/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.168 2020/05/13 08:32:43 mpi Exp $ */
+/* $OpenBSD: conf.c,v 1.169 2020/05/25 06:37:53 mpi Exp $ */
/* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */
/*
@@ -77,12 +77,6 @@ struct bdevsw bdevsw[] =
};
int nblkdev = nitems(bdevsw);
-/* open, close, read, write, ioctl, tty, mmap */
-#define cdev_pc_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
- dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
- dev_init(c,n,tty), ttpoll, dev_init(c,n,mmap), D_TTY }
-
/* open, close, read, ioctl */
#define cdev_joy_init(c,n) { \
dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
diff --git a/sys/arch/i386/include/conf.h b/sys/arch/i386/include/conf.h
index a47128fa7dd..54dd869f608 100644
--- a/sys/arch/i386/include/conf.h
+++ b/sys/arch/i386/include/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.18 2020/05/13 08:32:43 mpi Exp $ */
+/* $OpenBSD: conf.h,v 1.19 2020/05/25 06:37:53 mpi Exp $ */
/* $NetBSD: conf.h,v 1.2 1996/05/05 19:28:34 christos Exp $ */
/*
@@ -40,15 +40,6 @@ cdev_decl(pms);
bdev_decl(fd);
cdev_decl(fd);
-/* open, close, read, write, ioctl, tty, mmap */
-#define cdev_pc_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
- dev_init(c,n,write), dev_init(c,n,ioctl), dev_init(c,n,stop), \
- dev_init(c,n,tty), ttpoll, dev_init(c,n,mmap), D_TTY }
-
-cdev_decl(pc);
-
-
#define cdev_acpiapm_init(c,n) {\
dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
(dev_type_write((*))) enodev, dev_init(c,n,ioctl), \