coresight: remove csdev's link from topology
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 2 Feb 2016 21:13:59 +0000 (14:13 -0700)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 1 Jun 2016 21:30:06 +0000 (15:30 -0600)
commitc7d05101bca353aef2e8d16605eca13737fa9b61
tree29cbeb5e6fd66d44c3b965b0d727bec4626d64ea
parentf03467661ca82e16b05e786c893bb4cb89951ca3
coresight: remove csdev's link from topology

In function 'coresight_unregister()', all references to the csdev that
is being taken away need to be removed from the topology.  Otherwise
building the next coresight path from source to sink may use memory
that has been released.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit ad725aee070caf8fa93d84d6fb78321f9642db18)
drivers/hwtracing/coresight/coresight.c