summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/via
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2013-10-04 14:53:39 +0300
committerDave Airlie <airlied@redhat.com>2013-10-09 15:55:32 +1000
commitfc6ff1935b550bdf525e0caa5ef0894010375414 (patch)
tree29c0cea9e21f7f210930ebc39148fa94bfa553df /drivers/gpu/drm/via
parent6b8837df7a39d88f6a48a892312b08bbefba2540 (diff)
downloadop-kernel-dev-fc6ff1935b550bdf525e0caa5ef0894010375414.zip
op-kernel-dev-fc6ff1935b550bdf525e0caa5ef0894010375414.tar.gz
drm: Kill ctx_count from struct drm_device
The only user of ctx_count is the via driver, and we can replace that use with list_is_singular(). Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/via')
-rw-r--r--drivers/gpu/drm/via/via_mm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/via/via_mm.c b/drivers/gpu/drm/via/via_mm.c
index 7e3ad87..9278891 100644
--- a/drivers/gpu/drm/via/via_mm.c
+++ b/drivers/gpu/drm/via/via_mm.c
@@ -79,7 +79,7 @@ int via_final_context(struct drm_device *dev, int context)
/* Linux specific until context tracking code gets ported to BSD */
/* Last context, perform cleanup */
- if (dev->ctx_count == 1 && dev->dev_private) {
+ if (list_is_singular(&dev->ctxlist) && dev->dev_private) {
DRM_DEBUG("Last Context\n");
drm_irq_uninstall(dev);
via_cleanup_futex(dev_priv);
OpenPOWER on IntegriCloud