Skip to content

Commit

Permalink
Call config_intrhook_disestablish on failure of the bcm2835 fb and fb…
Browse files Browse the repository at this point in the history
…d intr

hooks. With this we can get through the boot even if these functions fail.

Sponsored by:	ABT Systems Ltd
  • Loading branch information
zxombie committed Mar 8, 2015
1 parent 84c0730 commit 13f561b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion sys/arm/broadcom/bcm2835/bcm2835_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 2 additions & 7 deletions sys/arm/broadcom/bcm2835/bcm2835_fbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 13f561b

Please sign in to comment.