summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-06-12 14:52:19 +0800
committerSimon Glass <sjg@chromium.org>2015-07-14 18:03:15 -0600
commitcb5cbfd503d38bfe963ebd52da958563c636709d (patch)
tree6e8f607b11ee25c9e650e6e8bdbdfb30f969c04c /drivers
parent166c3984e6b1271c2e31ff0528ad65aadc913860 (diff)
downloadu-boot-imx-cb5cbfd503d38bfe963ebd52da958563c636709d.zip
u-boot-imx-cb5cbfd503d38bfe963ebd52da958563c636709d.tar.gz
u-boot-imx-cb5cbfd503d38bfe963ebd52da958563c636709d.tar.bz2
dm: cpu: Test against cpu_ops->get_info in cpu_get_info()
In cpu_get_info() it wrongly tests against cpu_ops->get_desc to see if it is NULL. It should test against cpu_ops->get_info. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cpu/cpu-uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpu/cpu-uclass.c b/drivers/cpu/cpu-uclass.c
index aa0267c..d6be9d4 100644
--- a/drivers/cpu/cpu-uclass.c
+++ b/drivers/cpu/cpu-uclass.c
@@ -26,7 +26,7 @@ int cpu_get_info(struct udevice *dev, struct cpu_info *info)
{
struct cpu_ops *ops = cpu_get_ops(dev);
- if (!ops->get_desc)
+ if (!ops->get_info)
return -ENOSYS;
return ops->get_info(dev, info);