"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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to