Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2001 12:41:33 +0100
From:      Willem van Engen <wvengen@stack.nl>
To:        "Matthew N. Dodd" <winter@jurai.net>, freebsd-hackers@freebsd.org
Subject:   Re: driver: probe not called when smbus child
Message-ID:  <3AB8936D.887833B3@stack.nl>
References:  <Pine.BSF.4.21.0103210250150.54019-100000@sasami.jurai.net>

next in thread | previous in thread | raw e-mail | index | archive | help
"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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AB8936D.887833B3>