]> git.baikalelectronics.ru Git - kernel.git/commit
drm/kms: allow drm_mode_group with no objects
authorBen Skeggs <bskeggs@redhat.com>
Mon, 4 Jul 2011 03:16:17 +0000 (03:16 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Jul 2011 07:49:00 +0000 (17:49 +1000)
commited14070965f5ed7fcec4ae05fe1387be21bf0934
treef291208be1768fa870fa373d2c4397f75a84d789
parent8bb2088c7533ee601d1fb96c08f44312451e8dd0
drm/kms: allow drm_mode_group with no objects

Sometimes we could be controlling a device (such as an NVIDIA Tesla) that
has no crtcs/encoders/connectors.

One could argue that the driver should unset DRIVER_MODESET in this case,
but that changes a whole heap of the DRM's other behaviours, and it's much
easier to just be a modesetting driver without any outputs.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c