Re: [PATCH 2/2] Revert "mfd: cros_ec: Use devm_kzalloc for private data"

From: Lee Jones
Date: Wed Jul 04 2018 - 03:00:16 EST


On Wed, 20 Jun 2018, Dmitry Torokhov wrote:

> This reverts commit 3aa2177e47878f7e7616da8a2050c44f22301b6e.
>
> Linux device objects are refcounted and thus should not be allocated
> with devm API as they may outlive the timeframe of another device being
> bound to a driver.
> ---
> drivers/mfd/cros_ec_dev.c | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)

For my own reference:
Acked-for-MFD-by: Lee Jones <lee.jones@xxxxxxxxxx>

--
Lee Jones [æçæ]
Linaro Services Technical Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog