]> git.baikalelectronics.ru Git - kernel.git/commit
soc/tegra: pmc: Don't allocate struct tegra_powergate on stack
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 3 May 2018 08:26:17 +0000 (13:56 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 8 May 2018 04:58:49 +0000 (10:28 +0530)
commitac5bc58e3a06b18cbd85dcddb10d7f119319a481
tree6474df0c88a1ed2866034b620656d41a9f1d1bf6
parent168fb2339b3160ca37ba72b2279d52daad61d1d7
soc/tegra: pmc: Don't allocate struct tegra_powergate on stack

With a later commit an instance of the struct device will be added to
struct genpd and with that the size of the struct tegra_powergate will
be over 1024 bytes. That generates following warning:

drivers/soc/tegra/pmc.c:579:1: warning: the frame size of 1200 bytes is larger than 1024 bytes [-Wframe-larger-than=]

Avoid such warnings by allocating the structure dynamically.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/pmc.c