summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac/nvbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc/powermac/nvbl.c')
-rw-r--r--sys/powerpc/powermac/nvbl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/powerpc/powermac/nvbl.c b/sys/powerpc/powermac/nvbl.c
index 1f89881..033f972 100644
--- a/sys/powerpc/powermac/nvbl.c
+++ b/sys/powerpc/powermac/nvbl.c
@@ -82,6 +82,8 @@ DRIVER_MODULE(nvbl, vgapci, nvbl_driver, nvbl_devclass, 0, 0);
static void
nvbl_identify(driver_t *driver, device_t parent)
{
+ if (OF_finddevice("mac-io/backlight") == -1)
+ return;
if (device_find_child(parent, "backlight", -1) == NULL)
device_add_child(parent, "backlight", -1);
}
OpenPOWER on IntegriCloud