Commit 808bad32 authored by Fernando Ramos's avatar Fernando Ramos Committed by Linus Walleij
Browse files

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: default avatarFernando Ramos <greenfoo@gluegarage.com>
Acked-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
Acked-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
Acked-by: default avatarStefan Agner <stefan@agner.ch>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20181115221634.22715-4-greenfoo@gluegarage.com
parent 3e70fd16
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -190,7 +190,7 @@ err_unload:
	arcpgu_unload(drm);

err_unref:
	drm_dev_unref(drm);
	drm_dev_put(drm);

	return ret;
}
@@ -201,7 +201,7 @@ static int arcpgu_remove(struct platform_device *pdev)

	drm_dev_unregister(drm);
	arcpgu_unload(drm);
	drm_dev_unref(drm);
	drm_dev_put(drm);

	return 0;
}
+2 −2
Original line number Diff line number Diff line
@@ -550,7 +550,7 @@ out_register:
out_bind:
	kfree(priv);
out_unref:
	drm_dev_unref(drm);
	drm_dev_put(drm);

	return ret;
}
@@ -567,7 +567,7 @@ static void etnaviv_unbind(struct device *dev)
	drm->dev_private = NULL;
	kfree(priv);

	drm_dev_unref(drm);
	drm_dev_put(drm);
}

static const struct component_master_ops etnaviv_master_ops = {
+2 −2
Original line number Diff line number Diff line
@@ -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;
}
+1 −1
Original line number Diff line number Diff line
@@ -437,7 +437,7 @@ static int rcar_du_remove(struct platform_device *pdev)
	drm_kms_helper_poll_fini(ddev);
	drm_mode_config_cleanup(ddev);

	drm_dev_unref(ddev);
	drm_dev_put(ddev);

	return 0;
}
+2 −2
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ static int shmob_drm_remove(struct platform_device *pdev)
	drm_kms_helper_poll_fini(ddev);
	drm_mode_config_cleanup(ddev);
	drm_irq_uninstall(ddev);
	drm_dev_unref(ddev);
	drm_dev_put(ddev);

	return 0;
}
@@ -290,7 +290,7 @@ err_modeset_cleanup:
	drm_kms_helper_poll_fini(ddev);
	drm_mode_config_cleanup(ddev);
err_free_drm_dev:
	drm_dev_unref(ddev);
	drm_dev_put(ddev);

	return ret;
}
Loading