Disable error message about failed attempt to attach fbd when drm2 built with

syscons.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Aleksandr Rybalko 2013-12-10 15:53:00 +00:00
parent 00f4f023f1
commit 8c68d7b224
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259179
5 changed files with 6 additions and 2 deletions

View File

@ -113,6 +113,7 @@ struct drm_device;
#include "opt_compat.h"
#include "opt_drm.h"
#include "opt_syscons.h"
#ifdef DRM_DEBUG
#undef DRM_DEBUG
#define DRM_DEBUG_DEFAULT_ON 1

View File

@ -1044,8 +1044,10 @@ int drm_fb_helper_single_fb_probe(struct drm_fb_helper *fb_helper,
kdev = fb_helper->dev->device;
fbd = device_add_child(kdev, "fbd", device_get_unit(kdev));
ret = device_probe_and_attach(fbd);
#ifdef DEV_VT
if (ret != 0)
DRM_ERROR("Failed to attach fbd device: %d\n", ret);
#endif
}
#else
if (new_fb) {

View File

@ -54,6 +54,6 @@ SRCS += drm_ioc32.c
.endif
SRCS +=device_if.h bus_if.h pci_if.h device_if.h iicbus_if.h opt_drm.h \
opt_vm.h opt_compat.h
opt_vm.h opt_compat.h opt_syscons.h
.include <bsd.kmod.mk>

View File

@ -35,6 +35,6 @@ SRCS += i915_ioc32.c
.endif
SRCS += device_if.h fb_if.h bus_if.h pci_if.h iicbus_if.h iicbb_if.h \
opt_drm.h opt_compat.h
opt_drm.h opt_compat.h opt_syscons.h
.include <bsd.kmod.mk>

View File

@ -94,6 +94,7 @@ SRCS += \
opt_acpi.h \
opt_compat.h \
opt_drm.h \
opt_syscons.h \
acpi_if.h \
bus_if.h \
fb_if.h \