[U-Boot] [PATCH v3 22/54] dm: Correct the missing method check in cpu_get_info()

Simon Glass sjg at chromium.org
Wed Jul 8 16:10:04 CEST 2015


On 23 June 2015 at 15:38, Simon Glass <sjg at chromium.org> wrote:
> This is checking the wrong method. Fix it.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  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 ab18ee2..ffe250d 100644
> --- a/drivers/cpu/cpu-uclass.c
> +++ b/drivers/cpu/cpu-uclass.c
> @@ -25,7 +25,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);
> --
> 2.4.3.573.g4eafbef
>

Applied to u-boot-x86.


More information about the U-Boot mailing list