Disable error message about failed attempt to attach fbd when drm2 built with
syscons. Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
00f4f023f1
commit
8c68d7b224
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259179
@ -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
|
||||
|
@ -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) {
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user