From 7282326b722995c3fabd4dcd9244182b37500252 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Thu, 20 Mar 2014 17:20:17 +0800 Subject: [PATCH] spi: fsl-lib: Fix memory leak of pinfo of_mpc8xxx_spi_probe() allocates memory for pinfo but the memory is not freed anywhere. of_mpc8xxx_spi_probe() is called in .probe() and pinfo should be freed in .remove(), so convert kzalloc to devm_kzalloc to fix the memory leak. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- Reading git-format-patch failed