mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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>
This commit is contained in:
parent
166c3984e6
commit
cb5cbfd503
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ int cpu_get_info(struct udevice *dev, struct cpu_info *info)
|
||||||
{
|
{
|
||||||
struct cpu_ops *ops = cpu_get_ops(dev);
|
struct cpu_ops *ops = cpu_get_ops(dev);
|
||||||
|
|
||||||
if (!ops->get_desc)
|
if (!ops->get_info)
|
||||||
return -ENOSYS;
|
return -ENOSYS;
|
||||||
|
|
||||||
return ops->get_info(dev, info);
|
return ops->get_info(dev, info);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue