aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/drm
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-08-28 14:46:55 +0000
committerWarner Losh <imp@FreeBSD.org>2018-08-28 14:46:55 +0000
commit264d4ffdf12137201d68b7dd07451b3ccdfffa8b (patch)
tree6cd339ebb9df4e3ec20193fa441544ff208868e6 /sys/dev/drm
parentc0386fa3af821799856779b1b5c13d0f471a9abd (diff)
Notes
Diffstat (limited to 'sys/dev/drm')
-rw-r--r--sys/dev/drm/drm.h11
-rw-r--r--sys/dev/drm/drm_drv.c3
2 files changed, 13 insertions, 1 deletions
diff --git a/sys/dev/drm/drm.h b/sys/dev/drm/drm.h
index a2612049bb0d..026907f2026d 100644
--- a/sys/dev/drm/drm.h
+++ b/sys/dev/drm/drm.h
@@ -1145,4 +1145,15 @@ typedef struct drm_mm_init_arg drm_mm_init_arg_t;
typedef enum drm_bo_type drm_bo_type_t;
#endif
+#define DRM_PORT "graphics/drm-legacy-kmod"
+
+#define DRM_OBSOLETE(dev) \
+ do { \
+ device_printf(dev, "=======================================================\n"); \
+ device_printf(dev, "This code is obsolete abandonware. Install the " DRM_PORT " pkg\n"); \
+ device_printf(dev, "=======================================================\n"); \
+ gone_in_dev(dev, 13, "drm drivers"); \
+ } while (0)
+
+
#endif
diff --git a/sys/dev/drm/drm_drv.c b/sys/dev/drm/drm_drv.c
index 6874d45d0335..20d7d973aed1 100644
--- a/sys/dev/drm/drm_drv.c
+++ b/sys/dev/drm/drm_drv.c
@@ -174,7 +174,8 @@ int drm_probe(device_t kdev, drm_pci_id_list_t *idlist)
DRM_DEBUG("desc : %s\n", device_get_desc(kdev));
device_set_desc(kdev, id_entry->name);
}
- return 0;
+ DRM_OBSOLETE(kdev);
+ return BUS_PROBE_GENERIC;
}
return ENXIO;