Don't hardcode unit numer '0'.
We can have multiple instances.
This commit is contained in:
parent
f6901ba839
commit
b08a61b045
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118728
@ -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