intel_th: msu: Release resources on removal
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 8 Apr 2016 14:37:40 +0000 (17:37 +0300)
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>
Fri, 8 Apr 2016 14:45:46 +0000 (17:45 +0300)
commitf152dfee19c0cd146b16179a60ffb2cacf995736
tree0d17a2e74c33e885f6a49ec167f58d647daa3ff0
parent8e9a2beb5f991916e530184957c4137fab14604c
intel_th: msu: Release resources on removal

Do release the resources when msu subdevice gets removed: stop the
capture if it is active (which is still possible even though the
module in pinned) and free the capture buffers.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Laurent Fert <laurent.fert@intel.com>
drivers/hwtracing/intel_th/msu.c