ASoC: Intel: Skylake: Unmap the address last
authorVinod Koul <vinod.koul@intel.com>
Tue, 15 Mar 2016 11:09:26 +0000 (16:39 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 16 Mar 2016 10:08:43 +0000 (10:08 +0000)
commit077411e5eb8872736fdc5f3e7277719160918dde
treef89a253ccac2e370741711285fff19032f2af250
parent3f7f8489e25b180cf8de8a3ae3896b3f18fc4aa5
ASoC: Intel: Skylake: Unmap the address last

In Skylake destructor we unmap the hardware address and then free
links and streams. The stream free accesses hardware to write to
registers and predictably causes oops.

So change the order and unmap last in destructor.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl.c