The compatibility specification property is named "compatible", not

"compat".

Spotted by:	Marius Strobl <marius@alchemy.franken.de>
This commit is contained in:
Thomas Moestl 2004-03-27 22:39:47 +00:00
parent e3c4e1dd77
commit 38c174739c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127510
2 changed files with 2 additions and 2 deletions

View File

@ -390,7 +390,7 @@ ebus_setup_dinfo(device_t dev, struct ebus_softc *sc, phandle_t node,
edi->edi_name = name;
edi->edi_node = node;
OF_getprop_alloc(node, "compat", 1, (void **)&edi->edi_compat);
OF_getprop_alloc(node, "compatible", 1, (void **)&edi->edi_compat);
nreg = OF_getprop_alloc(node, "reg", sizeof(*reg), (void **)&reg);
if (nreg == -1) {
ebus_destroy_dinfo(edi);

View File

@ -460,7 +460,7 @@ sbus_setup_dinfo(struct sbus_softc *sc, phandle_t node, char *name)
resource_list_init(&sdi->sdi_rl);
sdi->sdi_name = name;
sdi->sdi_node = node;
OF_getprop_alloc(node, "compat", 1, (void **)&sdi->sdi_compat);
OF_getprop_alloc(node, "compatible", 1, (void **)&sdi->sdi_compat);
OF_getprop_alloc(node, "device_type", 1, (void **)&sdi->sdi_type);
slot = -1;
nreg = OF_getprop_alloc(node, "reg", sizeof(*reg), (void **)&reg);