Revert "ata: ahci_platform: convert kcalloc to devm_kcalloc"
authorCorentin Labbe <clabbe@baylibre.com>
Tue, 17 Jul 2018 10:49:35 +0000 (10:49 +0000)
committerTejun Heo <tj@kernel.org>
Tue, 24 Jul 2018 16:44:24 +0000 (09:44 -0700)
commit04ba9488199e3ee9971769cee585ec6847013ed2
treea79d4799ca8bdb24e80c10ed486c203ddc594352
parent1ecd34ddf63ef1d4015da5e5de6881e6845a6b0a
Revert "ata: ahci_platform: convert kcalloc to devm_kcalloc"

Since ahci_platform_put_resources() use target_pwrs after "devm_" freed
it, we cannot use devm_kcalloc for allocating target_pwrs.

This reverts commit bd0038b1b4f499d814d8f33a55b1df5ea6cf3b85.

Reported-and-reviwed-by: Mikko Perttunen <mperttunen@nvidia.com>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libahci_platform.c