mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
- removed debug printf that was a false positive on non-OpenPIC systems
- white space nits
This commit is contained in:
parent
b783c5e972
commit
78bdfb1f1c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125414
@ -107,7 +107,7 @@ static driver_t openpic_ofw_driver = {
|
||||
|
||||
static devclass_t openpic_ofw_devclass;
|
||||
|
||||
DRIVER_MODULE(openpic_ofw, nexus, openpic_ofw_driver, openpic_ofw_devclass,
|
||||
DRIVER_MODULE(openpic_ofw, nexus, openpic_ofw_driver, openpic_ofw_devclass,
|
||||
0, 0);
|
||||
|
||||
static void
|
||||
@ -118,10 +118,8 @@ openpic_ofw_identify(driver_t *driver, device_t parent)
|
||||
char type[40];
|
||||
|
||||
pic = OF_finddevice("mpic");
|
||||
if (pic == -1) {
|
||||
printf("could not find mpic!\n");
|
||||
if (pic == -1)
|
||||
return;
|
||||
}
|
||||
|
||||
OF_getprop(pic, "device_type", type, sizeof(type));
|
||||
|
||||
@ -145,9 +143,9 @@ openpic_ofw_probe(device_t dev)
|
||||
if (strcmp(name, "openpic") != 0 ||
|
||||
strcmp(type, "macio") != 0)
|
||||
return (ENXIO);
|
||||
|
||||
|
||||
device_set_desc(dev, OPENPIC_DEVSTR);
|
||||
return (0);
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
@ -181,7 +179,7 @@ static driver_t openpic_macio_driver = {
|
||||
|
||||
static devclass_t openpic_macio_devclass;
|
||||
|
||||
DRIVER_MODULE(openpicmacio, macio, openpic_macio_driver,
|
||||
DRIVER_MODULE(openpicmacio, macio, openpic_macio_driver,
|
||||
openpic_macio_devclass, 0, 0);
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user