bus_add_child takes a const char *.

This commit is contained in:
Warner Losh 2009-02-05 18:38:39 +00:00
parent 364eb2b192
commit 66a149db32

View File

@ -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;