From owner-freebsd-hackers Wed Mar 21 3:47:40 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from amsmta04-svc.chello.nl (mail-out.chello.nl [213.46.240.7]) by hub.freebsd.org (Postfix) with ESMTP id 07C1437B732 for ; Wed, 21 Mar 2001 03:47:35 -0800 (PST) (envelope-from wvengen@stack.nl) Received: from stack.nl ([213.46.110.240]) by amsmta04-svc.chello.nl (InterMail vK.4.03.02.00 201-232-124 license 9a0f3c09abb1b740b3b0b1917e20d81c) with ESMTP id <20010321114457.FAD11230.amsmta04-svc@stack.nl>; Wed, 21 Mar 2001 12:44:57 +0100 Message-ID: <3AB8936D.887833B3@stack.nl> Date: Wed, 21 Mar 2001 12:41:33 +0100 From: Willem van Engen X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: "Matthew N. Dodd" , freebsd-hackers@freebsd.org Subject: Re: driver: probe not called when smbus child References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Matthew N. Dodd" wrote: > > 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); the DRIVER_MODULE(9) manual says DRIVER_MODULE(name, busname, driver_t driver, devclass_t devclass, int (*evh) (struct module *, int, void *), void *arg) and the smb device uses the following: DRIVER_MODULE(smb, smbus, smb_driver, smb_devclass, 0, 0); so I guess not. But thanks anyway :) - Willem To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message