[U-Boot] [PATCH 2/9] dm: cpu: Test against cpu_ops->get_info in cpu_get_info()

9 Jun
2015
9 Jun
'15
9:45 a.m.
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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
1.8.2.1
3622
Age (days ago)
3622
Last active (days ago)
0 comments
1 participants
participants (1)
-
Bin Meng