sdvirtio: return 1 for success in vioenable()/viodisable()
This commit is contained in:
parent
4e8494aad7
commit
1889aa50c3
1 changed files with 2 additions and 2 deletions
|
@ -579,7 +579,7 @@ vioenable(SDev *sd)
|
||||||
snprint(name, sizeof(name), "%s (%s)", sd->name, sd->ifc->name);
|
snprint(name, sizeof(name), "%s (%s)", sd->name, sd->ifc->name);
|
||||||
intrenable(vd->pci->intl, viointerrupt, vd, vd->pci->tbdf, name);
|
intrenable(vd->pci->intl, viointerrupt, vd, vd->pci->tbdf, name);
|
||||||
outb(vd->port+Status, inb(vd->port+Status) | DriverOk);
|
outb(vd->port+Status, inb(vd->port+Status) | DriverOk);
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -591,7 +591,7 @@ viodisable(SDev *sd)
|
||||||
vd = sd->ctlr;
|
vd = sd->ctlr;
|
||||||
snprint(name, sizeof(name), "%s (%s)", sd->name, sd->ifc->name);
|
snprint(name, sizeof(name), "%s (%s)", sd->name, sd->ifc->name);
|
||||||
intrdisable(vd->pci->intl, viointerrupt, vd, vd->pci->tbdf, name);
|
intrdisable(vd->pci->intl, viointerrupt, vd, vd->pci->tbdf, name);
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDev*
|
static SDev*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue