Module Name: src Committed By: joerg Date: Sun Oct 4 08:20:24 UTC 2015
Modified Files: src/sys/dev/sbus: stp4020.c Log Message: Drop unused (inline) function. To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/sys/dev/sbus/stp4020.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/sbus/stp4020.c diff -u src/sys/dev/sbus/stp4020.c:1.67 src/sys/dev/sbus/stp4020.c:1.68 --- src/sys/dev/sbus/stp4020.c:1.67 Sat Oct 27 17:18:37 2012 +++ src/sys/dev/sbus/stp4020.c Sun Oct 4 08:20:24 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: stp4020.c,v 1.67 2012/10/27 17:18:37 chs Exp $ */ +/* $NetBSD: stp4020.c,v 1.68 2015/10/04 08:20:24 joerg Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: stp4020.c,v 1.67 2012/10/27 17:18:37 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: stp4020.c,v 1.68 2015/10/04 08:20:24 joerg Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -152,7 +152,6 @@ static void stp4020_dump_regs(struct stp static int stp4020_rd_sockctl(struct stp4020_socket *, int); static void stp4020_wr_sockctl(struct stp4020_socket *, int, int); -static int stp4020_rd_winctl(struct stp4020_socket *, int, int); static void stp4020_wr_winctl(struct stp4020_socket *, int, int, int); void stp4020_delay(struct stp4020_softc *sc, unsigned int); @@ -222,14 +221,6 @@ stp4020_wr_sockctl(struct stp4020_socket bus_space_write_2(h->tag, h->regs, o, v); } -static inline int -stp4020_rd_winctl(struct stp4020_socket *h, int win, int idx) -{ - int o = (STP4020_SOCKREGS_SIZE * (h->sock)) + - (STP4020_WINREGS_SIZE * win) + idx; - return (bus_space_read_2(h->tag, h->regs, o)); -} - static inline void stp4020_wr_winctl(struct stp4020_socket *h, int win, int idx, int v) {