]> git.hungrycats.org Git - linux/commitdiff
memory: tegra186-emc: drop unused to_tegra186_emc()
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Mon, 12 Aug 2024 12:30:55 +0000 (14:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:00:47 +0000 (12:00 +0200)
commit 67dd9e861add38755a7c5d29e25dd0f6cb4116ab upstream.

to_tegra186_emc() is not used, W=1 builds:

  tegra186-emc.c:38:36: error: unused function 'to_tegra186_emc' [-Werror,-Wunused-function]

Fixes: 9a38cb27668e ("memory: tegra: Add interconnect support for DRAM scaling in Tegra234")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240812123055.124123-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/memory/tegra/tegra186-emc.c

index 57d9ae12fcfe1a8e0fe04ceff0e9f94350c8a3e2..33d67d2517194082d429982a0f2fec77f0bf1571 100644 (file)
@@ -35,11 +35,6 @@ struct tegra186_emc {
        struct icc_provider provider;
 };
 
-static inline struct tegra186_emc *to_tegra186_emc(struct icc_provider *provider)
-{
-       return container_of(provider, struct tegra186_emc, provider);
-}
-
 /*
  * debugfs interface
  *