aboutsummaryrefslogtreecommitdiff
path: root/drivers/coresight
diff options
context:
space:
mode:
authorKaixu Xia <xiakaixu@huawei.com>2015-01-09 16:57:22 -0700
committerMathieu Poirier <mathieu.poirier@linaro.org>2015-03-02 11:34:12 -0700
commit46a8d0791af87f417beaee3005c1dc246074f701 (patch)
tree589c4544bfe24844e28df51c489efcff786b1bc2 /drivers/coresight
parentd5804b2d681c49df864b01f4963bb965980368b4 (diff)
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>
Diffstat (limited to 'drivers/coresight')
-rw-r--r--drivers/coresight/of_coresight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/coresight/of_coresight.c b/drivers/coresight/of_coresight.c
index 89ebbe29ac97..9a5ff56f34d9 100644
--- a/drivers/coresight/of_coresight.c
+++ b/drivers/coresight/of_coresight.c
@@ -174,7 +174,7 @@ struct coresight_platform_data *of_get_coresight_platform_data(
continue;
rdev = of_coresight_get_endpoint_device(rparent);
- if (!dev)
+ if (!rdev)
continue;
pdata->child_names[i] = dev_name(rdev);