From owner-freebsd-hackers Tue Mar 20 23:54:46 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [64.0.106.45]) by hub.freebsd.org (Postfix) with ESMTP id 7C8D637B71B for ; Tue, 20 Mar 2001 23:54:43 -0800 (PST) (envelope-from winter@jurai.net) Received: from localhost (winter@localhost) by sasami.jurai.net (8.9.3/8.8.7) with ESMTP id CAA27566; Wed, 21 Mar 2001 02:54:40 -0500 (EST) Date: Wed, 21 Mar 2001 02:54:39 -0500 (EST) From: "Matthew N. Dodd" To: Willem van Engen Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: driver: probe not called when smbus child In-Reply-To: <3AB77C31.8213C158@stack.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 20 Mar 2001, Willem van Engen wrote: > I'm trying to write a module which should be a child of the smbus. > When I make the driver a child of the isa bus, identify, probe, > and attach functions are properly called. I use the following > code to do that: > DRIVER_MODULE(my, isa, my_driver, my_devclass, 0, 0); > But when I put it on the smbus using > DRIVER_MODULE(my, smbus, my_driver, my_devclass, 0, 0); Shouldn't this be: DRIVER_MODULE(smbus, my, smbus_driver, smbus_devclass, 0, 0); -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message