diff options
author | peter <peter@FreeBSD.org> | 1999-07-06 13:42:43 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-07-06 13:42:43 +0000 |
commit | 64c315a8a5437bf7a69d9058011a947d23075a4b (patch) | |
tree | 5c0150205fdd2d51300dd902289b202359f441c3 /sys/dev/smbus | |
parent | a976cecf40c69cfb96f7e7218b97a580060882e1 (diff) | |
download | FreeBSD-src-64c315a8a5437bf7a69d9058011a947d23075a4b.zip FreeBSD-src-64c315a8a5437bf7a69d9058011a947d23075a4b.tar.gz |
Don't clobber the smb cdevsw entry that was installed by the driver
framework.
Diffstat (limited to 'sys/dev/smbus')
-rw-r--r-- | sys/dev/smbus/smb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/smbus/smb.c b/sys/dev/smbus/smb.c index e74094a..06e5246 100644 --- a/sys/dev/smbus/smb.c +++ b/sys/dev/smbus/smb.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: smb.c,v 1.13 1999/05/31 11:25:05 phk Exp $ + * $Id: smb.c,v 1.14 1999/07/04 14:58:21 phk Exp $ * */ #include <sys/param.h> @@ -122,10 +122,6 @@ static int smb_probe(device_t dev) { struct smb_softc *sc = (struct smb_softc *)device_get_softc(dev); - static int once; - - if (!once++) - cdevsw_add(&smb_cdevsw); sc->sc_addr = smbus_get_addr(dev); |