Re: [PATCH v2 1/2] ASoC: samsung: i2s: Fix secondary platform device unregistration
From: Krzysztof Kozlowski
Date: Tue Feb 19 2019 - 10:40:36 EST
On Tue, 19 Feb 2019 at 16:20, Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> wrote:
>
> This fixes unregistration of the secondary platform device so all
> resources are properly released. Additionally the removal sequence
> is corrected so it is in reverse order comparing to probe sequence.
> The test against NULL priv->pdev_sec is removed as it is not necessary.
>
> Signed-off-by: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx>
> ---
> Changes since v1:
> - corrected order of calls on error path in probe() and in remove().
>
> sound/soc/samsung/i2s.c | 19 ++++++++++---------
> 1 file changed, 10 insertions(+), 9 deletions(-)
Acked-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx>
Best regards,
Krzysztof