loader: Rename drm_open_device() to loader_open_device() and share it
authorDerek Foreman <derekf@osg.samsung.com>
Wed, 17 Jun 2015 16:28:49 +0000 (11:28 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 23 Jun 2015 15:54:51 +0000 (16:54 +0100)
commit9c927463492dea14d82ebdd77f711f86b0e6fc5e
tree8c0345f46bae0a9f8eed508f73e83e24088685fd
parentaaac913e901229d11a1894f6aaf646de6b1a542c
loader: Rename drm_open_device() to loader_open_device() and share it

This is already our common idiom for opening files with CLOEXEC and
it's a little ugly, so let's share this one implementation.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/loader/loader.c
src/loader/loader.h