drm: replace "drm_dev_unref" function with "drm_dev_put"
This patch unifies the naming of DRM functions for reference counting as requested on Documentation/gpu/todo.rst Signed-off-by: Fernando Ramos <greenfoo@gluegarage.com> Acked-by: Boris Brezillon <boris.brezillon@bootlin.com> Acked-by: Alexey Brodkin <abrodkin@synopsys.com> Acked-by: Stefan Agner <stefan@agner.ch> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20181115221634.22715-4-greenfoo@gluegarage.com
This commit is contained in:
committed by
Linus Walleij
parent
3e70fd160c
commit
808bad32ea
@ -417,7 +417,7 @@ static int mxsfb_probe(struct platform_device *pdev)
|
||||
err_unload:
|
||||
mxsfb_unload(drm);
|
||||
err_free:
|
||||
drm_dev_unref(drm);
|
||||
drm_dev_put(drm);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@ -428,7 +428,7 @@ static int mxsfb_remove(struct platform_device *pdev)
|
||||
|
||||
drm_dev_unregister(drm);
|
||||
mxsfb_unload(drm);
|
||||
drm_dev_unref(drm);
|
||||
drm_dev_put(drm);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user