diff options
author | imp <imp@FreeBSD.org> | 2008-08-07 20:52:54 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-08-07 20:52:54 +0000 |
commit | 1fbadc47e92419f3c5765760b8fd716a5acdcc83 (patch) | |
tree | 31f6a51ff73b59a5641094cf41ced365f4f9cef7 /sys/dev/pccard/pccard.c | |
parent | f05570f4d0a6fd049460f901b8f8793c2803262b (diff) | |
download | FreeBSD-src-1fbadc47e92419f3c5765760b8fd716a5acdcc83.zip FreeBSD-src-1fbadc47e92419f3c5765760b8fd716a5acdcc83.tar.gz |
Add NEC PC-9802N-J02 (confirmed) and NEC PC-9202N-J02R (speculative)
to the list of devices.
Diffstat (limited to 'sys/dev/pccard/pccard.c')
-rw-r--r-- | sys/dev/pccard/pccard.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c index daddf56..9aa3a0b 100644 --- a/sys/dev/pccard/pccard.c +++ b/sys/dev/pccard/pccard.c @@ -654,18 +654,9 @@ pccard_function_enable(struct pccard_function *pf) return (ENOMEM); } - /* - * Increase the reference count on the socket, enabling power, if - * necessary. XXX: I don't see the enable power part here! - */ - pf->sc->sc_enabled_count++; - - if (pf->pf_flags & PFF_ENABLED) { - /* - * Don't do anything if we're already enabled. - */ + if (pf->pf_flags & PFF_ENABLED) return (0); - } + pf->sc->sc_enabled_count++; /* * it's possible for different functions' CCRs to be in the same @@ -775,13 +766,8 @@ pccard_function_disable(struct pccard_function *pf) if (pf->cfe == NULL) panic("pccard_function_disable: function not initialized"); - if ((pf->pf_flags & PFF_ENABLED) == 0) { - /* - * Don't do anything if we're already disabled. - */ + if ((pf->pf_flags & PFF_ENABLED) == 0) return; - } - if (pf->intr_handler != NULL) { struct pccard_ivar *devi = PCCARD_IVAR(pf->dev); struct resource_list_entry *rle = |