diff options
author | imp <imp@FreeBSD.org> | 2002-12-21 22:37:54 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2002-12-21 22:37:54 +0000 |
commit | 94d1ceabe0b85163330b21789aed37043df7a83b (patch) | |
tree | 1cfa3db8ed7ce84bb3d1da1b6f2d0df971b22f8e /sys/dev/sio/sio_pccard.c | |
parent | 629bbce50c5ed38c42c10a3eeb9533d8f06b0b39 (diff) | |
download | FreeBSD-src-94d1ceabe0b85163330b21789aed37043df7a83b.zip FreeBSD-src-94d1ceabe0b85163330b21789aed37043df7a83b.tar.gz |
Be nice. There are evidentally a number of different cards that
identify themselves as serial cards that it would be desirable to
attach a different driver than sio to. Since we are claiming all
serial cards, this is not possible. Instead, return -100 to indicate
that we're willing to take the card, but still allow other drivers to
attach.
Pointed out by: Maksim Yevmenkin
Diffstat (limited to 'sys/dev/sio/sio_pccard.c')
-rw-r--r-- | sys/dev/sio/sio_pccard.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/sio/sio_pccard.c b/sys/dev/sio/sio_pccard.c index 571e822..7f9897a 100644 --- a/sys/dev/sio/sio_pccard.c +++ b/sys/dev/sio/sio_pccard.c @@ -80,10 +80,12 @@ sio_pccard_match(device_t dev) if (error != 0) return (error); /* - * If a serial card, we are likely the right driver. + * If a serial card, we are likely the right driver. However, + * some serial cards are better servered by other drivers, so + * allow other drivers to claim it, if they want. */ if (fcn == PCCARD_FUNCTION_SERIAL) - return (0); + return (-100); return(ENXIO); } |