coresight: fixing validity check on remote device
authorKaixu Xia <xiakaixu@huawei.com>
Fri, 9 Jan 2015 23:57:22 +0000 (16:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Jan 2015 13:04:14 +0000 (05:04 -0800)
commit2ccffaf92e7b7cc9dfa6c3458fc9cb151621680a
tree81220056090e49e818759f29d0d52c38b4834ee2
parentf7c55298f17f0bf9d257ea7f2f15cf920248db5b
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>
drivers/coresight/of_coresight.c