From patchwork Sat Sep 17 15:54:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9337289 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5A37D60839 for ; Sat, 17 Sep 2016 15:54:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4039E291AB for ; Sat, 17 Sep 2016 15:54:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34F38291DA; Sat, 17 Sep 2016 15:54:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CE185291AB for ; Sat, 17 Sep 2016 15:54:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752434AbcIQPyV (ORCPT ); Sat, 17 Sep 2016 11:54:21 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:36249 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752257AbcIQPyU (ORCPT ); Sat, 17 Sep 2016 11:54:20 -0400 Received: by mail-pa0-f67.google.com with SMTP id my20so1778595pab.3 for ; Sat, 17 Sep 2016 08:54:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XQ0uR6a94LsSDON9ISYVTkGrgoBwKXJvUm8PGTwYAKU=; b=QPErKmznPY/WjyVgRws9tt4UIPu/D9prFnACFgWUYBeDXMnevNitIP+QBWGjYbtJsj 2NSLD+SKEhOxwhroCXJGVoZugtb4W9XmSwcgDENPJkg6ULIZ1tPQs89O/7pbuwvlvxr8 cHUMnm6J8NeXGs1igc25kExdY53mK5E1ImBbVADbzylDXJjc1xO2khkNjcUluVizCMa+ Chdn24DgEk5lPQFkgjY0NiYMGa5kPl5zN9CAehiE5N9KAq/KKkXYMsrOjaZIyI6PslhD FdrWKMCek3NoBkTtjfUTLLUCD9RvFTBdbPOPMNDLN5RzXjEyi+piTJvGZJs1ziQrD0zz ehjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XQ0uR6a94LsSDON9ISYVTkGrgoBwKXJvUm8PGTwYAKU=; b=mm3rQ3UZNPjKFBzFtBKvQz+q5TaPL81HVNwvQqgYFLsZ3G0Lh2h4tbiCTMiEdJVNUL 4tycUW8RQg2dBYF3Wt4IOv0J2hqIjazGbgfDBmZBzFwmwlQDNFXsbnNo7IG/q2EEXA2F CzlVM7DrNm059/JeSumRWEyssA99BdvFlotNPQuxZt5evD5eIrUUGrFHRQSTPdNvYxBD q7YGwnkd2A403uA9wNf6wySZZ8xgkv8a0el8NywCXItiS2sX5sN2nkZ9lplJB2+DE9pK OT5i8DUa/tAu3zxfjImVW/caQIXrNp4z0pQfxxIoXnCwa8KzvcN3X5JmMmknnzdFU2N7 uTrw== X-Gm-Message-State: AE9vXwMznXn5BE1lI9Nm3qX+MvP0CUnLIUS7neCb5z/QTN06ygSJJNdReZ/USOA6zARDLQ== X-Received: by 10.66.81.201 with SMTP id c9mr32372925pay.14.1474127660111; Sat, 17 Sep 2016 08:54:20 -0700 (PDT) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id g10sm60047999pfc.57.2016.09.17.08.54.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Sep 2016 08:54:19 -0700 (PDT) From: Wei Yongjun To: Michael Turquette , Stephen Boyd , Chao Xie Cc: Wei Yongjun , linux-clk@vger.kernel.org Subject: [PATCH] clk: mmp: mmp2: fix return value check in mmp2_clk_init() Date: Sat, 17 Sep 2016 15:54:13 +0000 Message-Id: <1474127653-14529-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fix the retrn value check which testing the wrong variable in mmp2_clk_init(). Fixes: 1ec770d92a62 ("clk: mmp: add mmp2 DT support for clock driver") Signed-off-by: Wei Yongjun --- drivers/clk/mmp/clk-of-mmp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-clk" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/clk/mmp/clk-of-mmp2.c b/drivers/clk/mmp/clk-of-mmp2.c index 3a51fff..9adaf48 100644 --- a/drivers/clk/mmp/clk-of-mmp2.c +++ b/drivers/clk/mmp/clk-of-mmp2.c @@ -313,7 +313,7 @@ static void __init mmp2_clk_init(struct device_node *np) } pxa_unit->apmu_base = of_iomap(np, 1); - if (!pxa_unit->mpmu_base) { + if (!pxa_unit->apmu_base) { pr_err("failed to map apmu registers\n"); return; }