diff options
author | phk <phk@FreeBSD.org> | 1999-05-30 14:55:24 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-05-30 14:55:24 +0000 |
commit | dfa3967ffa4d84ed0b1691fac89ba3e73b8544e0 (patch) | |
tree | 9e927ef89e0ac7affe168dbcd0f4c6ca24e7eb0c /sys | |
parent | d13d00dd201d56537ddf0fa9877ac26d1016a4fd (diff) | |
download | FreeBSD-src-dfa3967ffa4d84ed0b1691fac89ba3e73b8544e0.zip FreeBSD-src-dfa3967ffa4d84ed0b1691fac89ba3e73b8544e0.tar.gz |
Don't bogusly define a d_reset_t function.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/kbd/kbd.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sys/dev/kbd/kbd.c b/sys/dev/kbd/kbd.c index 48e6355..7562422 100644 --- a/sys/dev/kbd/kbd.c +++ b/sys/dev/kbd/kbd.c @@ -23,7 +23,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: kbd.c,v 1.5 1999/05/18 11:07:12 yokota Exp $ + * $Id: kbd.c,v 1.6 1999/05/18 11:08:39 yokota Exp $ */ #include "kbd.h" @@ -399,7 +399,6 @@ static d_close_t kbdclose; static d_read_t kbdread; static d_write_t kbdwrite; static d_ioctl_t kbdioctl; -static d_reset_t kbdreset; static d_devtotty_t kbddevtotty; static d_poll_t kbdpoll; static d_mmap_t kbdmmap; @@ -408,7 +407,7 @@ static d_mmap_t kbdmmap; static struct cdevsw kbd_cdevsw = { kbdopen, kbdclose, kbdread, kbdwrite, /* ??? */ - kbdioctl, nullstop, kbdreset, kbddevtotty, + kbdioctl, nullstop, noreset, kbddevtotty, kbdpoll, kbdmmap, nostrategy, "kbd", NULL, -1, nodump, nopsize, }; @@ -531,17 +530,6 @@ kbdioctl(dev_t dev, u_long cmd, caddr_t arg, int flag, struct proc *p) cmd, arg, flag, p); } -static int -kbdreset(dev_t dev) -{ - int unit; - - unit = KBD_UNIT(dev); - if (kbdcdevsw[unit] == NULL) - return ENXIO; - return (*kbdcdevsw[unit]->d_reset)(makedev(0, keyboard[unit]->kb_minor)); -} - static struct tty *kbddevtotty(dev_t dev) { |