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)
commit495ac33a3b82f85ed4fbdd9b826c1d2fbc8e9b68
tree6474df0c88a1ed2866034b620656d41a9f1d1bf6
parent75bc37fefc4471e718ba8e651aa74673d4e0a9eb
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