mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-07 13:14:51 +00:00
Call config_intrhook_disestablish on failure of the bcm2835 fb and fbd intr
hooks. With this we can get through the boot even if these functions fail. Sponsored by: ABT Systems Ltd
This commit is contained in:
parent
6ab1d4d9c3
commit
686513878d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279780
@ -240,7 +240,6 @@ bcm_fb_init(void *arg)
|
||||
}
|
||||
else {
|
||||
device_printf(sc->dev, "Failed to set framebuffer info\n");
|
||||
return;
|
||||
}
|
||||
|
||||
config_intrhook_disestablish(&sc->init_hook);
|
||||
|
@ -186,17 +186,12 @@ bcm_fb_init(void *arg)
|
||||
|
||||
fbd = device_add_child(sc->dev, "fbd",
|
||||
device_get_unit(sc->dev));
|
||||
if (fbd == NULL) {
|
||||
if (fbd == NULL)
|
||||
device_printf(sc->dev, "Failed to add fbd child\n");
|
||||
return;
|
||||
}
|
||||
if (device_probe_and_attach(fbd) != 0) {
|
||||
else if (device_probe_and_attach(fbd) != 0)
|
||||
device_printf(sc->dev, "Failed to attach fbd device\n");
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
device_printf(sc->dev, "Failed to set framebuffer info\n");
|
||||
return;
|
||||
}
|
||||
|
||||
config_intrhook_disestablish(&sc->init_hook);
|
||||
|
Loading…
Reference in New Issue
Block a user