projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
166c398
)
dm: cpu: Test against cpu_ops->get_info in cpu_get_info()
author
Bin Meng
<bmeng.cn@gmail.com>
Fri, 12 Jun 2015 06:52:19 +0000
(14:52 +0800)
committer
Simon Glass
<sjg@chromium.org>
Wed, 15 Jul 2015 00:03:15 +0000
(18:03 -0600)
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>
drivers/cpu/cpu-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/cpu/cpu-uclass.c
b/drivers/cpu/cpu-uclass.c
index aa0267ca03e9c7cf3c37fac47c822e084ba23ec4..d6be9d4dcf5cd534a9efb5627a91dfe405887065 100644
(file)
--- 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);