Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pcmcia disable the function if attach fails.



details:   https://anonhg.NetBSD.org/src/rev/0350e6dcb590
branches:  trunk
changeset: 512661:0350e6dcb590
user:      onoe <onoe%NetBSD.org@localhost>
date:      Fri Jul 13 03:09:39 2001 +0000

description:
disable the function if attach fails.

diffstat:

 sys/dev/pcmcia/if_wi_pcmcia.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 30a8e7e0e60e -r 0350e6dcb590 sys/dev/pcmcia/if_wi_pcmcia.c
--- a/sys/dev/pcmcia/if_wi_pcmcia.c     Fri Jul 13 00:06:06 2001 +0000
+++ b/sys/dev/pcmcia/if_wi_pcmcia.c     Fri Jul 13 03:09:39 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wi_pcmcia.c,v 1.5 2001/07/01 16:35:37 thorpej Exp $ */
+/* $NetBSD: if_wi_pcmcia.c,v 1.6 2001/07/13 03:09:39 onoe Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -378,6 +378,7 @@
 attach_failed:
        pcmcia_intr_disestablish(psc->sc_pf, sc->sc_ih);
 no_interrupt:
+       pcmcia_function_disable(psc->sc_pf);
        pcmcia_io_unmap(psc->sc_pf, psc->sc_io_window);
        pcmcia_io_free(psc->sc_pf, &psc->sc_pcioh);
 no_config_entry:



Home | Main Index | Thread Index | Old Index