diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-06-05 04:59:55 +0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-06-11 10:11:29 +0400 |
commit | e84a35a8054397b0a4efc86ba82d9bc8b3895c75 (patch) | |
tree | 3681db98f5efa125772b664e4ab0a233b0a02d01 /drivers/gpu/drm/nouveau/nouveau_crtc.h | |
parent | e32d68c9c799dbe90450b94146624d04aa25aa47 (diff) | |
download | linux-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.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) |