Skip to content

Commit

Permalink
Merge pull request #5 from eric-ch/kernel-uprev-3.18-r1
Browse files Browse the repository at this point in the history
Changes for linux 3.18 kernel
  • Loading branch information
Kyle Temkin committed Aug 5, 2015
2 parents f429a36 + b2082bd commit 0ea6c4d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions plugins/drm/src/device-intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,14 @@ static int i915_match_udev_device(struct udev *udev, struct udev_device *device)
DRM_DBG("%s has no devnode (likely udev subdevice of DRM subsystem).", udev_device_get_sysname(device));
return EEXIST;
}
/* XXX: Not sure what we could use that node for, but it comes with every card
* and usually is minor 64. */
if (!strncmp(udev_device_get_sysname(device), "controlD64", sizeof ("controlD64") - 1)) {
/* XXX: We currently do not use for the control (min:64) and render (min:128) nodes. */
/* Ignore controlD* nodes in general */
if (!strncmp(udev_device_get_sysname(device), "controlD", sizeof ("controlD") - 1)) {
DRM_DBG("Ignoring redundant %s DRM device.", udev_device_get_sysname(device));
return EEXIST; /* We already, or will, have the other device node. */
}
/* Ignore renderD* nodes in general */
if (!strncmp(udev_device_get_sysname(device), "renderD", sizeof ("renderD") - 1)) {
DRM_DBG("Ignoring redundant %s DRM device.", udev_device_get_sysname(device));
return EEXIST; /* We already, or will, have the other device node. */
}
Expand Down

0 comments on commit 0ea6c4d

Please sign in to comment.