diff options
author | Kaixu Xia <xiakaixu@huawei.com> | 2015-01-09 18:57:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-12 08:04:14 -0500 |
commit | 2ccffaf92e7b7cc9dfa6c3458fc9cb151621680a (patch) | |
tree | 81220056090e49e818759f29d0d52c38b4834ee2 /drivers/coresight | |
parent | f7c55298f17f0bf9d257ea7f2f15cf920248db5b (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>
Diffstat (limited to 'drivers/coresight')
-rw-r--r-- | drivers/coresight/of_coresight.c | 2 |
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( | |||
174 | continue; | 174 | continue; |
175 | 175 | ||
176 | rdev = of_coresight_get_endpoint_device(rparent); | 176 | rdev = of_coresight_get_endpoint_device(rparent); |
177 | if (!dev) | 177 | if (!rdev) |
178 | continue; | 178 | continue; |
179 | 179 | ||
180 | pdata->child_names[i] = dev_name(rdev); | 180 | pdata->child_names[i] = dev_name(rdev); |