Set DEVNAME to dri/card%d. This works with both in-tree drm and drm-next

and is also the value used on Linux.

Tested by:	Greg V <greg@unrelenting.technology>
This commit is contained in:
Tijl Coosemans 2017-10-15 19:21:15 +00:00
parent 11ce4d9f39
commit df4c975275

View File

@ -205,8 +205,8 @@ linsysfs_fill_uevent_drm(PFS_FILL_ARGS)
dev = (device_t)pn->pn_data;
unit = device_get_unit(dev);
sbuf_printf(sb,
"MAJOR=226\nMINOR=%d\nDEVNAME=drm/%d\nDEVTYPE=dri_minor\n", unit,
unit);
"MAJOR=226\nMINOR=%d\nDEVNAME=dri/card%d\nDEVTYPE=dri_minor\n",
unit, unit);
return (0);
}