intel: Supply a fallback guess for the device path
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Mar 2014 19:44:07 +0000 (19:44 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 10 Mar 2014 22:19:25 +0000 (22:19 +0000)
commitd10a5abcbd7c751adc08e24d9f4bdc33596b6f12
tree3dd2e615aa0be0ad2caa8d1bb83ba15327f12ace
parent28cab948f50b1d67468edbd9c8e10d3d696155f5
intel: Supply a fallback guess for the device path

If for some reason we have an fd, but no device path, use the likely
default path (derived from and validated against the major/minor of the
open device fd).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/intel_device.c