diff options
Diffstat (limited to 'sys/dev/ic/vga.c')
-rw-r--r-- | sys/dev/ic/vga.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/ic/vga.c b/sys/dev/ic/vga.c index a10224c24e7..dfe4440d38e 100644 --- a/sys/dev/ic/vga.c +++ b/sys/dev/ic/vga.c @@ -522,21 +522,13 @@ vga_extended_attach(struct device *self, bus_space_tag_t iot, int console; struct vga_config *vc; struct wsemuldisplaydev_attach_args aa; - extern struct cfdriver wsdisplay_cd; - struct device *dev; console = vga_is_console(iot, type); if (console) vga_console_attached = 1; - /* Bail if a drm driver already attached a wsdisplay. */ - for (dev = TAILQ_NEXT(self, dv_list); dev != NULL; - dev = TAILQ_NEXT(dev, dv_list)) { - if (dev->dv_parent != self) - continue; - if (dev->dv_cfdata->cf_driver == &wsdisplay_cd) - return NULL; - } + if (type == -1) + return NULL; if (console) { vc = &vga_console_vc; |