diff options
Diffstat (limited to 'sys/arch/sparc/dev/esp.c')
-rw-r--r-- | sys/arch/sparc/dev/esp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/esp.c b/sys/arch/sparc/dev/esp.c index 7ed4df74607..c96b1449d87 100644 --- a/sys/arch/sparc/dev/esp.c +++ b/sys/arch/sparc/dev/esp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: esp.c,v 1.27 2009/03/29 21:53:52 sthen Exp $ */ +/* $OpenBSD: esp.c,v 1.28 2009/10/26 20:17:27 deraadt Exp $ */ /* $NetBSD: esp.c,v 1.69 1997/08/27 11:24:18 bouyer Exp $ */ /* @@ -355,7 +355,7 @@ espattach(parent, self, aux) mapiodev(ca->ca_ra.ra_reg, 0, ca->ca_ra.ra_len); } - dmachild = strncmp(parent->dv_xname, "dma", 3) == 0; + dmachild = strcmp(parent->dv_cfdata->cf_driver->cd_name, "dma") == 0; if (dmachild) { esc->sc_dma = (struct dma_softc *)parent; esc->sc_dma->sc_esp = esc; |