bus_add_child takes a const char *.
This commit is contained in:
parent
364eb2b192
commit
66a149db32
@ -47,8 +47,8 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
static int atkbdc_isa_probe(device_t dev);
|
||||
static int atkbdc_isa_attach(device_t dev);
|
||||
static device_t atkbdc_isa_add_child(device_t bus, int order, char *name,
|
||||
int unit);
|
||||
static device_t atkbdc_isa_add_child(device_t bus, int order, const char *name,
|
||||
int unit);
|
||||
|
||||
static device_method_t atkbdc_isa_methods[] = {
|
||||
DEVMETHOD(device_probe, atkbdc_isa_probe),
|
||||
@ -227,7 +227,7 @@ atkbdc_isa_attach(device_t dev)
|
||||
}
|
||||
|
||||
static device_t
|
||||
atkbdc_isa_add_child(device_t bus, int order, char *name, int unit)
|
||||
atkbdc_isa_add_child(device_t bus, int order, const char *name, int unit)
|
||||
{
|
||||
atkbdc_device_t *ivar;
|
||||
device_t child;
|
||||
|
Loading…
Reference in New Issue
Block a user