From: jsg Date: Mon, 26 Apr 2021 06:05:55 +0000 (+0000) Subject: remove unused cdev defines X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8a7d254f64960966f701ad31f94da6fe15b29516;p=openbsd remove unused cdev defines --- diff --git a/sys/arch/arm64/arm64/conf.c b/sys/arch/arm64/arm64/conf.c index 2f3504b9d12..a47ca8313d5 100644 --- a/sys/arch/arm64/arm64/conf.c +++ b/sys/arch/arm64/arm64/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.17 2021/01/23 05:08:34 thfr Exp $ */ +/* $OpenBSD: conf.c,v 1.18 2021/04/26 06:05:55 jsg Exp $ */ /* * Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved. @@ -72,21 +72,6 @@ struct bdevsw bdevsw[] = }; int nblkdev = nitems(bdevsw); -/* open, close, ioctl, select -- XXX should be a generic device */ -#define cdev_ocis_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), \ - (dev_type_stop((*))) enodev, 0, dev_init(c,n,poll), \ - (dev_type_mmap((*))) enodev, 0 } - -/* open, close, read */ -#define cdev_nvram_init(c,n) { \ - dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ - (dev_type_write((*))) enodev, (dev_type_ioctl((*))) enodev, \ - (dev_type_stop((*))) enodev, 0, seltrue, \ - (dev_type_mmap((*))) enodev, 0, 0, seltrue_kqfilter } - - #define mmread mmrw #define mmwrite mmrw cdev_decl(mm); @@ -99,7 +84,6 @@ cdev_decl(com); cdev_decl(lpt); #include "ch.h" #include "bpfilter.h" -cdev_decl(spkr); #include "tun.h" #include "audio.h" #include "video.h"