From patchwork Sat Sep 17 15:54:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9337291 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 963E260839 for ; Sat, 17 Sep 2016 15:54:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86316291AB for ; Sat, 17 Sep 2016 15:54:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 79328291DA; Sat, 17 Sep 2016 15:54:43 +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 0755E291AB for ; Sat, 17 Sep 2016 15:54:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752916AbcIQPym (ORCPT ); Sat, 17 Sep 2016 11:54:42 -0400 Received: from mail-pa0-f68.google.com ([209.85.220.68]:33501 "EHLO mail-pa0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752389AbcIQPyl (ORCPT ); Sat, 17 Sep 2016 11:54:41 -0400 Received: by mail-pa0-f68.google.com with SMTP id oz2so4759802pac.0 for ; Sat, 17 Sep 2016 08:54:41 -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=iWLkWUr+3/olUbXeJ5dCJHJ+d95AHFQvTIapMazbxJo=; b=tKq0aTKt3qO6h5QiQF31AT84uHQYNWGbnYzyCMEX6UNTyCG/y9+10RWrRnWe14Bj0f eUscKY6jy0ecviPEs+161qu3/315xvylfPhc4YkWquaZJ96Y46eOeIZAUewv5SJHsvIe jcpimEluEh/BXxEoMgDo7MFaA+ra8YWqRfHhnSJTjArPlFPidkZZ9QmCYrx4iRvhX9FZ EpUOOtm2UffbH+W/YYUs9O/7WnuYpTXWuFebvJt7B2qmvwBvqL/gu0CxlirJ7OvkQ9B7 IfKCfY8OA1gtPbTGaHxOH+3Kmp8rBH3mmpbkYPPkcBmnZzQr8tDVkamFK1P/hMFLkC/Y dHgA== 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=iWLkWUr+3/olUbXeJ5dCJHJ+d95AHFQvTIapMazbxJo=; b=D0vmn4fk8zflVtBMiiMp7a7b8jeDOHid14LRjc6o1c/FAh5wE5QNMRqz9lnUoR+v+2 1MoRL7dND30i/nzZl832B43+oH9l8fPJLA9tnAiC1aLXZ0bhBVLp0WxsXftZ4sdZvZT1 ZRvaVAyYKQ7tdSMZTR7UykFc0r9jghFl/pshuPiumG1m6WEfJbaVhL8+nsSuFpiYwGji m+ZVUzY0s+lvIMnCSCtEqocBe+oXD3VoGGkwSqyelaoWYlsNKA195OQBP6I2K6mVilYg U8TRJf48ZQlgP4D5Um/DyHBFrpNAcMPOJ5mUBmC0T6siH9xTHst1TKCRbH2nl8Zriz0T znTg== X-Gm-Message-State: AE9vXwOlKBwLaiKRbClW1fsopsi5WBQhyIm6j2lgAfl14sKPd1sG0jpglNz0Ctss7gsPyQ== X-Received: by 10.66.72.40 with SMTP id a8mr32564772pav.15.1474127681138; Sat, 17 Sep 2016 08:54:41 -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 27sm19134870pfr.29.2016.09.17.08.54.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Sep 2016 08:54:40 -0700 (PDT) From: Wei Yongjun To: Michael Turquette , Stephen Boyd , Chao Xie Cc: Wei Yongjun , linux-clk@vger.kernel.org Subject: [PATCH] clk: mmp: pxa168: fix return value check in pxa168_clk_init() Date: Sat, 17 Sep 2016 15:54:28 +0000 Message-Id: <1474127668-14614-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 pxa168_clk_init(). Fixes: ab08aefcd12d ("clk: mmp: add pxa168 DT support for clock driver") Signed-off-by: Wei Yongjun --- drivers/clk/mmp/clk-of-pxa168.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-pxa168.c b/drivers/clk/mmp/clk-of-pxa168.c index 87f2317..f110c02 100644 --- a/drivers/clk/mmp/clk-of-pxa168.c +++ b/drivers/clk/mmp/clk-of-pxa168.c @@ -262,7 +262,7 @@ static void __init pxa168_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; }