diff options
author | Lionel Landwerlin <[email protected]> | 2020-02-10 16:15:58 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-03 21:14:18 +0000 |
commit | c3e305616cbc53317bbace6f1f316c9167f14313 (patch) | |
tree | 6c520e5222faadf215719811235e2cfb56069636 /src/broadcom | |
parent | fa5a36dbd474fb3c755da51553c6ca18dab76a06 (diff) |
drm-shim: return device platform as specified
v2: Embed the libdrm dependency inside the drm-shim dependency
Signed-off-by: Lionel Landwerlin <[email protected]>
Acked-by: Eric Anholt <[email protected]> (v1)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4429>
Diffstat (limited to 'src/broadcom')
-rw-r--r-- | src/broadcom/drm-shim/v3d.c | 1 | ||||
-rw-r--r-- | src/broadcom/drm-shim/v3d_noop.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/broadcom/drm-shim/v3d.c b/src/broadcom/drm-shim/v3d.c index e75657f59f7..81e34c128e2 100644 --- a/src/broadcom/drm-shim/v3d.c +++ b/src/broadcom/drm-shim/v3d.c @@ -78,6 +78,7 @@ v3d_ioctl_get_bo_offset(int fd, unsigned long request, void *arg) void drm_shim_driver_init(void) { + shim_device.bus_type = DRM_BUS_PLATFORM; shim_device.driver_name = "v3d"; drm_shim_override_file("OF_FULLNAME=/rdb/v3d\n" diff --git a/src/broadcom/drm-shim/v3d_noop.c b/src/broadcom/drm-shim/v3d_noop.c index 7c7d751285d..3caa757bb3e 100644 --- a/src/broadcom/drm-shim/v3d_noop.c +++ b/src/broadcom/drm-shim/v3d_noop.c @@ -146,6 +146,7 @@ static ioctl_fn_t driver_ioctls[] = { void drm_shim_driver_init(void) { + shim_device.bus_type = DRM_BUS_PLATFORM; shim_device.driver_name = "v3d"; shim_device.driver_ioctls = driver_ioctls; shim_device.driver_ioctl_count = ARRAY_SIZE(driver_ioctls); |