Don't hardcode unit numer '0'.
We can have multiple instances.
This commit is contained in:
parent
6fa45ec052
commit
65e3384428
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user