diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-02-07 08:07:29 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2009-02-07 08:07:29 +0000 |
commit | 8e0d725c2efa49f55403b1e3645c9089b734cd6d (patch) | |
tree | d80f568ed2a336526a3c4cfeb91a84dea845a671 /sys/dev/ic | |
parent | 91d7c4b1e8e19265e830892187ee5e1792850a00 (diff) |
Unifdef __OpenBSD__, these defines don't help us to sync with NetBSD
anymore but make reading the code harder.
ok sthen@ miod@ krw@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/wdc.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c index 268b912a7aa..9968bc6e531 100644 --- a/sys/dev/ic/wdc.c +++ b/sys/dev/ic/wdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc.c,v 1.101 2009/01/21 21:54:00 grange Exp $ */ +/* $OpenBSD: wdc.c,v 1.102 2009/02/07 08:07:28 grange Exp $ */ /* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */ /* * Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved. @@ -754,9 +754,6 @@ wdcattach(chp) struct channel_softc *chp; { int channel_flags, ctrl_flags, i; -#ifndef __OpenBSD__ - int error; -#endif struct ata_atapi_attach aa_link; static int inited = 0; #ifdef WDCDEBUG @@ -771,26 +768,15 @@ wdcattach(chp) timeout_set(&chp->ch_timo, wdctimeout, chp); -#ifndef __OpenBSD__ - if ((error = wdc_addref(chp)) != 0) { - printf("%s: unable to enable controller\n", - chp->wdc->sc_dev.dv_xname); - return; - } -#endif /* __OpenBSD__ */ if (!chp->_vtbl) chp->_vtbl = &wdc_default_vtbl; if (chp->wdc->drv_probe != NULL) { chp->wdc->drv_probe(chp); } else { - if (wdcprobe(chp) == 0) { + if (wdcprobe(chp) == 0) /* If no drives, abort attach here. */ -#ifndef __OpenBSD__ - wdc_delref(chp); -#endif return; - } } /* ATAPI drives need settling time. Give them 250ms */ @@ -892,10 +878,6 @@ wdcattach(chp) chp->ch_drive[i].drive_flags = 0; } -#ifndef __OpenBSD__ - wdc_delref(chp); -#endif - exit: #ifdef WDCDEBUG wdcdebug_mask = savedmask; |