diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-06-05 02:59:55 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-06-11 08:11:29 +0200 |
commit | e84a35a8054397b0a4efc86ba82d9bc8b3895c75 (patch) | |
tree | 3681db98f5efa125772b664e4ab0a233b0a02d01 /drivers/gpu/drm/nouveau/nouveau_crtc.h | |
parent | drm/gf119-/disp: fix debug output on update failure (diff) | |
download | linux-e84a35a8054397b0a4efc86ba82d9bc8b3895c75.tar.xz linux-e84a35a8054397b0a4efc86ba82d9bc8b3895c75.zip |
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.h | 2 |
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) |