From: Bin Meng Date: Fri, 12 Jun 2015 06:52:19 +0000 (+0800) Subject: dm: cpu: Test against cpu_ops->get_info in cpu_get_info() X-Git-Tag: v2015.10-rc1~190^2~50 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cb5cbfd503d38bfe963ebd52da958563c636709d;p=oweals%2Fu-boot.git 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 --- diff --git a/drivers/cpu/cpu-uclass.c b/drivers/cpu/cpu-uclass.c index aa0267ca03..d6be9d4dcf 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);