drm: Implement drmCheckModesettingSupported() for DragonFly

For the sake of simplicity, KMS support can always be considered
present on DragonFly.

If some particular version doesn't support KMS yet, appropriate
checks are already done in Dports's x11-drivers/ Makefiles and
KMS-enabled driver packages don't get built.

Signed-off-by: François Tigeot <ftigeot@wolfpond.org>
Signed-off-by: Maarten Lankhorst <dev@mblankhorst.nl>
main
François Tigeot 2014-07-26 13:39:58 +02:00 committed by Maarten Lankhorst
parent 07fead4462
commit edbb4e545f
1 changed files with 2 additions and 0 deletions

View File

@ -806,6 +806,8 @@ int drmCheckModesettingSupported(const char *busid)
return -EINVAL; return -EINVAL;
return (modesetting ? 0 : -ENOSYS); return (modesetting ? 0 : -ENOSYS);
} }
#elif defined(__DragonFly__)
return 0;
#endif #endif
return -ENOSYS; return -ENOSYS;