loader: fallback to drmGetVersion() for non-pci devices
authorRob Clark <robclark@freedesktop.org>
Sat, 14 Dec 2013 19:28:33 +0000 (14:28 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 18 Jan 2014 18:52:07 +0000 (18:52 +0000)
commitbf70c238a72021d61e1464ecc31932c47b7003cc
tree2fe2d2fa1b292b5c865683530f31f7f79de1b4fa
parent26458420d8802a765cf71c75ef9f3b6da6bdfd8d
loader: fallback to drmGetVersion() for non-pci devices

Use the kernel driver name are returned by drmGetVersion() for
non-pci(platform) devices.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
v2 (Emil): Rebased and weaked commit message.
Reviewed-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/loader/loader.c