ASoC: samsung: i2s: Fix secondary platform device unregistration 42/200642/2
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Tue, 19 Feb 2019 15:19:40 +0000 (16:19 +0100)
committerSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 4 Mar 2019 17:05:33 +0000 (18:05 +0100)
commitd34667c7f4ab779cece08f75c44b0a832c04be0c
tree7f128a530910ddd9803c11ad27fa90800e0865f9
parent769d3be463ba1fe1cf7ef8b59e8e969e00cd7efc
ASoC: samsung: i2s: Fix secondary platform device unregistration

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.

Change-Id: If325e11b4109fbc61fbb2df3ac012f2c1e9f0cb5
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/i2s.c