mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-12 03:26:26 +00:00
drm/armada: Replace drm_dev_unref with drm_dev_put
This patch unifies the naming of DRM functions for reference counting of struct drm_device. The resulting code is more aligned with the rest of the Linux kernel interfaces. Signed-off-by: Thomas Zimmermann <tdz@users.sourceforge.net> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
This commit is contained in:
parent
3fce461827
commit
830aadceae
1 changed files with 3 additions and 3 deletions
|
@ -109,7 +109,7 @@ static int armada_drm_bind(struct device *dev)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The drm_device structure must be at the start of
|
* The drm_device structure must be at the start of
|
||||||
* armada_private for drm_dev_unref() to work correctly.
|
* armada_private for drm_dev_put() to work correctly.
|
||||||
*/
|
*/
|
||||||
BUILD_BUG_ON(offsetof(struct armada_private, drm) != 0);
|
BUILD_BUG_ON(offsetof(struct armada_private, drm) != 0);
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ static int armada_drm_bind(struct device *dev)
|
||||||
drm_mode_config_cleanup(&priv->drm);
|
drm_mode_config_cleanup(&priv->drm);
|
||||||
drm_mm_takedown(&priv->linear);
|
drm_mm_takedown(&priv->linear);
|
||||||
flush_work(&priv->fb_unref_work);
|
flush_work(&priv->fb_unref_work);
|
||||||
drm_dev_unref(&priv->drm);
|
drm_dev_put(&priv->drm);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ static void armada_drm_unbind(struct device *dev)
|
||||||
drm_mm_takedown(&priv->linear);
|
drm_mm_takedown(&priv->linear);
|
||||||
flush_work(&priv->fb_unref_work);
|
flush_work(&priv->fb_unref_work);
|
||||||
|
|
||||||
drm_dev_unref(&priv->drm);
|
drm_dev_put(&priv->drm);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int compare_of(struct device *dev, void *data)
|
static int compare_of(struct device *dev, void *data)
|
||||||
|
|
Loading…
Reference in a new issue