Don't hardcode unit numer '0'.

We can have multiple instances.
This commit is contained in:
ticso 2003-08-10 14:28:24 +00:00
parent 6fa45ec052
commit 65e3384428
3 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ static struct cdevsw iic_cdevsw = {
static void
iic_identify(driver_t *driver, device_t parent)
{
BUS_ADD_CHILD(parent, 0, "iic", 0);
BUS_ADD_CHILD(parent, 0, "iic", -1);
}
static int

View File

@ -138,7 +138,7 @@ static driver_t iicsmb_driver = {
static void
iicsmb_identify(driver_t *driver, device_t parent)
{
BUS_ADD_CHILD(parent, 0, "iicsmb", 0);
BUS_ADD_CHILD(parent, 0, "iicsmb", -1);
}
static int

View File

@ -101,7 +101,7 @@ static struct cdevsw smb_cdevsw = {
static void
smb_identify(driver_t *driver, device_t parent)
{
BUS_ADD_CHILD(parent, 0, "smb", 0);
BUS_ADD_CHILD(parent, 0, "smb", -1);
}
static int