[PATCH v7 28/47] memory: tegra: Add and use devm_tegra_memory_controller_get()
Krzysztof Kozlowski
krzk at kernel.org
Fri Nov 6 19:02:34 UTC 2020
On Wed, Nov 04, 2020 at 07:49:04PM +0300, Dmitry Osipenko wrote:
> Multiple Tegra drivers need to retrieve Memory Controller and there is
> duplication of the retrieval code among the drivers.
>
> Add new devm_tegra_memory_controller_get() helper to remove the code's
> duplication and to fix put_device() which was missed in the duplicated
> code. Make EMC drivers to use the new helper.
>
> Acked-by: Thierry Reding <treding at nvidia.com>
> Signed-off-by: Dmitry Osipenko <digetx at gmail.com>
> ---
> drivers/memory/tegra/mc.c | 48 ++++++++++++++++++++++++
> drivers/memory/tegra/tegra124-emc.c | 18 ++-------
> drivers/memory/tegra/tegra210-emc-core.c | 39 +++++--------------
> drivers/memory/tegra/tegra30-emc.c | 18 ++-------
> include/soc/tegra/mc.h | 10 +++++
> 5 files changed, 74 insertions(+), 59 deletions(-)
>
Thanks, applied.
Best regards,
Krzysztof
More information about the dri-devel
mailing list