diff options
| author | Emil Velikov <[email protected]> | 2020-05-15 09:51:06 +0000 |
|---|---|---|
| committer | Emil Velikov <[email protected]> | 2020-05-19 21:31:34 +0000 |
| commit | d742cdd613e6c1db54bbd35f4b8a96dfc0ca77d2 (patch) | |
| tree | 374bad2a39c95edd93d375423193e42f615cb8d9 /drivers/gpu/drm/omapdrm/omap_fbdev.c | |
| parent | drm/nouveau: remove _unlocked suffix in drm_gem_object_put_unlocked (diff) | |
| download | kernel-d742cdd613e6c1db54bbd35f4b8a96dfc0ca77d2.tar.gz kernel-d742cdd613e6c1db54bbd35f4b8a96dfc0ca77d2.zip | |
drm/omapdrm: remove _unlocked suffix in drm_gem_object_put_unlocked
Spelling out _unlocked for each and every driver is a annoying.
Especially if we consider how many drivers, do not know (or need to)
about the horror stories involving struct_mutex.
Just drop the suffix. It makes the API cleaner.
Done via the following script:
__from=drm_gem_object_put_unlocked
__to=drm_gem_object_put
for __file in $(git grep --name-only $__from); do
sed -i "s/$__from/$__to/g" $__file;
done
Cc: Tomi Valkeinen <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Signed-off-by: Emil Velikov <[email protected]>
Acked-by: Sam Ravnborg <[email protected]>
Acked-by: Thomas Zimmermann <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fbdev.c')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_fbdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fbdev.c b/drivers/gpu/drm/omapdrm/omap_fbdev.c index 09a84919ef73..3f6cfc24fb64 100644 --- a/drivers/gpu/drm/omapdrm/omap_fbdev.c +++ b/drivers/gpu/drm/omapdrm/omap_fbdev.c @@ -140,7 +140,7 @@ static int omap_fbdev_create(struct drm_fb_helper *helper, /* note: if fb creation failed, we can't rely on fb destroy * to unref the bo: */ - drm_gem_object_put_unlocked(fbdev->bo); + drm_gem_object_put(fbdev->bo); ret = PTR_ERR(fb); goto fail; } |
