thermal: tegra: fix memory allocation
authorWei Ni <wni@nvidia.com>
Tue, 19 Feb 2019 04:27:03 +0000 (12:27 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Thu, 21 Feb 2019 01:23:37 +0000 (17:23 -0800)
commit3d88adf3ef17bbeb3799f3f64eb3f7a66416cdf4
tree5917a47a92c0f9f79ef9aff6f986107a20d00d6c
parentcd28561dce0f8dbdb5d8efd686933f3381f7ce90
thermal: tegra: fix memory allocation

Fix memory allocation to store the pointers to
thermal_zone_device.

Signed-off-by: Wei Ni <wni@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/tegra/soctherm.c