coresight: fixing validity check on remote device
authorKaixu Xia <xiakaixu@huawei.com>
Fri, 9 Jan 2015 23:57:22 +0000 (16:57 -0700)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 2 Mar 2015 18:34:12 +0000 (11:34 -0700)
commit46a8d0791af87f417beaee3005c1dc246074f701
tree589c4544bfe24844e28df51c489efcff786b1bc2
parentd5804b2d681c49df864b01f4963bb965980368b4
coresight: fixing validity check on remote device

A validity check should be made on the remote device, i.e rdev,
rather than the current device.

Signed-off-by: Kaixu Xia <xiakaixu@huawei.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2ccffaf92e7b7cc9dfa6c3458fc9cb151621680a)
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/coresight/of_coresight.c