diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2016-11-26 15:36:11 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2016-11-26 15:36:11 +0000 |
commit | 9bbca1a4c84801fe8252588047c0ad26cc7467a2 (patch) | |
tree | 1cceefb67c49f65a9f48d4f365a488c679858692 /sys/arch/octeon/dev/cn30xxgmx.c | |
parent | 268ef3d6e256506950b53232e2d6c1629e31c79f (diff) |
Remove unnecessary function cn30xxgmx_submatch and call config_found
instead of config_found_sm.
OK visa@
Diffstat (limited to 'sys/arch/octeon/dev/cn30xxgmx.c')
-rw-r--r-- | sys/arch/octeon/dev/cn30xxgmx.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/arch/octeon/dev/cn30xxgmx.c b/sys/arch/octeon/dev/cn30xxgmx.c index 268822e4d4d..6af8194bb52 100644 --- a/sys/arch/octeon/dev/cn30xxgmx.c +++ b/sys/arch/octeon/dev/cn30xxgmx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cn30xxgmx.c,v 1.30 2016/10/29 11:20:27 visa Exp $ */ +/* $OpenBSD: cn30xxgmx.c,v 1.31 2016/11/26 15:36:10 martijn Exp $ */ /* * Copyright (c) 2007 Internet Initiative Japan, Inc. @@ -88,7 +88,6 @@ struct cn30xxgmx_port_ops { int cn30xxgmx_match(struct device *, void *, void *); void cn30xxgmx_attach(struct device *, struct device *, void *); int cn30xxgmx_print(void *, const char *); -int cn30xxgmx_submatch(struct device *, void *, void *); int cn30xxgmx_port_phy_addr(int); int cn30xxgmx_init(struct cn30xxgmx_softc *); int cn30xxgmx_rx_frm_ctl_xable(struct cn30xxgmx_port_softc *, @@ -304,8 +303,7 @@ cn30xxgmx_attach(struct device *parent, struct device *self, void *aux) gmx_aa.ga_gmx_port = port_sc; gmx_aa.ga_phy_addr = phy_addr; - config_found_sm(self, &gmx_aa, - cn30xxgmx_print, cn30xxgmx_submatch); + config_found(self, &gmx_aa, cn30xxgmx_print); #ifdef OCTEON_ETH_DEBUG __cn30xxgmx_port_softc[port_sc->sc_port_no] = port_sc; @@ -342,14 +340,6 @@ cn30xxgmx_print(void *aux, const char *pnp) } int -cn30xxgmx_submatch(struct device *parent, void *vcf, void *aux) -{ - struct cfdata *cf = vcf; - - return (*cf->cf_attach->ca_match)(parent, vcf, aux); -} - -int cn30xxgmx_init(struct cn30xxgmx_softc *sc) { int result = 0; |