Message ID | 1435095556-15924-23-git-send-email-sjg@chromium.org |
---|---|
State | Accepted |
Delegated to: | Simon Glass |
Headers | show |
On 23 June 2015 at 15:38, Simon Glass <sjg@chromium.org> wrote: > This is checking the wrong method. Fix it. > > Signed-off-by: Simon Glass <sjg@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.
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);
This is checking the wrong method. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v3: None Changes in v2: None drivers/cpu/cpu-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)