summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/nouveau/nouveau_crtc.h
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-06-05 04:59:55 +0400
committerBen Skeggs <bskeggs@redhat.com>2014-06-11 10:11:29 +0400
commite84a35a8054397b0a4efc86ba82d9bc8b3895c75 (patch)
tree3681db98f5efa125772b664e4ab0a233b0a02d01 /drivers/gpu/drm/nouveau/nouveau_crtc.h
parente32d68c9c799dbe90450b94146624d04aa25aa47 (diff)
downloadlinux-e84a35a8054397b0a4efc86ba82d9bc8b3895c75.tar.xz
drm/nv50-: prepare for attaching a SOR to multiple heads
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_crtc.h')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_crtc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_crtc.h b/drivers/gpu/drm/nouveau/nouveau_crtc.h
index d1e5890784d7..a0534489d23f 100644
--- a/drivers/gpu/drm/nouveau/nouveau_crtc.h
+++ b/drivers/gpu/drm/nouveau/nouveau_crtc.h
@@ -74,7 +74,7 @@ struct nouveau_crtc {
static inline struct nouveau_crtc *nouveau_crtc(struct drm_crtc *crtc)
{
- return container_of(crtc, struct nouveau_crtc, base);
+ return crtc ? container_of(crtc, struct nouveau_crtc, base) : NULL;
}
static inline struct drm_crtc *to_drm_crtc(struct nouveau_crtc *crtc)