diff options
author | imp <imp@FreeBSD.org> | 2003-08-20 23:43:20 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-08-20 23:43:20 +0000 |
commit | 852364fd42cdad3db8830e29f586f03757411634 (patch) | |
tree | d5a5b0645f15d396679a669648570abebb0dcd8a | |
parent | 62b1c7ca4720fb98384a1db6ab0f0a3f80d76407 (diff) | |
download | FreeBSD-src-852364fd42cdad3db8830e29f586f03757411634.zip FreeBSD-src-852364fd42cdad3db8830e29f586f03757411634.tar.gz |
In my efforts to make checking the CD bits less error-prone, I
introduced an error. In power_enable_socket, we only return ENODEV if
there isn't a card, not if there is a card. Ooops.
Pointy hat to: bsdimp
-rw-r--r-- | sys/dev/pccbb/pccbb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pccbb/pccbb.c b/sys/dev/pccbb/pccbb.c index d09e557..5a7cb93 100644 --- a/sys/dev/pccbb/pccbb.c +++ b/sys/dev/pccbb/pccbb.c @@ -1378,7 +1378,7 @@ cbb_cardbus_power_enable_socket(device_t brdev, device_t child) struct cbb_softc *sc = device_get_softc(brdev); int err; - if (CBB_CARD_PRESENT(cbb_get(sc, CBB_SOCKET_STATE))) + if (!CBB_CARD_PRESENT(cbb_get(sc, CBB_SOCKET_STATE))) return (ENODEV); err = cbb_do_power(brdev); |