From patchwork Tue Jun 23 21:38:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 487782 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 10C3814012C for ; Wed, 24 Jun 2015 07:41:12 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=clPhVqxb; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 47AB34B681; Tue, 23 Jun 2015 23:40:49 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cr2MGskb8Iez; Tue, 23 Jun 2015 23:40:49 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 799964B639; Tue, 23 Jun 2015 23:40:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C31BA4A033 for ; Tue, 23 Jun 2015 23:39:58 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VeyTBf-Mac8R for ; Tue, 23 Jun 2015 23:39:58 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) by theia.denx.de (Postfix) with ESMTPS id 7D7174A039 for ; Tue, 23 Jun 2015 23:39:58 +0200 (CEST) Received: by iecvh10 with SMTP id vh10so21093591iec.3 for ; Tue, 23 Jun 2015 14:39:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=lu9i+iwottmXQmPac4a/ch/htc1jLtNpVgk+kcB1y18=; b=clPhVqxbafuedVRKoC5ZFLBtuJECEkJgEM3zs82DTzfODgBytYb8YfAv2h4ihymNIj ASwJHHkZmfUFcDTPzKnhkCvxz/JxKMlNCYC4KOtPwILt4tgEi+xWycUwdv0J9/NPk7fz G5QPfHG1dLn4Ews5gcopu1kp4cKNvr2JVvSBgCx6OcyEyLgH5gNd4IoP4Xa3u3gh34BK QN+0kHldKc8GIAoAGD7RLdzXB6Sr3qFnRS7hl2XQci1cRQi4uQr6kZwXOAsuCjvZGcPY IqynPSuc7xYYFgQ/Z2XoqZy6fZxkdj8qsYbtRt2Yhh6DCrAs/V5u3GlOFeQUA26o83t9 7WQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=lu9i+iwottmXQmPac4a/ch/htc1jLtNpVgk+kcB1y18=; b=AQJYlD6jhcK15LqkoZt/y4hDmVevZgM+9CV8abPtOVJ3vpfHvRQ/57047U4g93q4Ej LxuW5NDXdL1Gm49Bb91iPSHoCIHzvE/5K4vrpqBqS7IYnTXA6+dYueJIQcCvHwZEzWNc yUo6a2FnmqO/yufVP1c+9FK+5DWxksCIpbM7D9+NsXojmc2I56S2Uvu0Q7NZnUgbFTYL LYC7JoKyjiZNvHHskLOdor/aX8mr1HNnsVY7S2fWzWgJYrY9TJmTjDJw7dZ3lEKi9ccN UzRboqxzubJlIHosulGc5wsvGoxPIVY7l3iiQJeRepeExTHI4xJQXpCX3GKIgMfgLBGj pDVw== X-Gm-Message-State: ALoCoQmPZ0v77GbtMOxjKI+3hc/uuMc/lG2OgB0Pl8hnzlaXY0t/F/g+d1NbZuN5VbQp/qIdCwmS X-Received: by 10.107.136.214 with SMTP id s83mr49996080ioi.65.1435095597360; Tue, 23 Jun 2015 14:39:57 -0700 (PDT) Received: from kaki.bld.corp.google.com ([2620:0:1005:1100:29dc:b646:97d0:4c6e]) by mx.google.com with ESMTPSA id g12sm15931040ioe.28.2015.06.23.14.39.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jun 2015 14:39:57 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 061FC22204B; Tue, 23 Jun 2015 15:39:51 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Tue, 23 Jun 2015 15:38:44 -0600 Message-Id: <1435095556-15924-23-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.4.3.573.g4eafbef In-Reply-To: <1435095556-15924-1-git-send-email-sjg@chromium.org> References: <1435095556-15924-1-git-send-email-sjg@chromium.org> Cc: Tom Rini , Przemyslaw Marczak Subject: [U-Boot] [PATCH v3 22/54] dm: Correct the missing method check in cpu_get_info() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This is checking the wrong method. Fix it. Signed-off-by: Simon Glass --- 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);