From patchwork Wed Mar 13 09:47:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2262621 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 9AE603FCF6 for ; Wed, 13 Mar 2013 10:02:35 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UFiSN-0000zy-9X; Wed, 13 Mar 2013 09:58:47 +0000 Received: from mail-pb0-f46.google.com ([209.85.160.46]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UFiSK-0000zE-Vz for linux-arm-kernel@lists.infradead.org; Wed, 13 Mar 2013 09:58:45 +0000 Received: by mail-pb0-f46.google.com with SMTP id uo15so858660pbc.19 for ; Wed, 13 Mar 2013 02:58:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=xfitiA5+teXIBEwvwMq+PJNPQMO9gza0VEZOpgZSFIU=; b=AGXCAVnhdf/vH9qvFoAitF1VVMOLw36lu2XRSxsMgvfanWqG/h8d5zVwvFeGkjeqlX QmdZ24mlqk4hCseYBbW2YO8HdiXI2x++X/zeQAk04b6yrnLbDEwwEUoJU1T0oU+UdOMz 7T7NWz7GYWFHNXgFihgJsdx+VXRxH2BF4/IDlZ/LVsFql4D+GZMBfP1VZt4lBjrk5V6P HMRS3aHy6GJy2RgoqDwXqkz39gG2gIvJ0KNAoMsHmhcAniQY+MZXqwISPLrt+W8BkUWJ NMo/QWYNg9wySKtcTdNBczGYgWwg/8FI28CEkaGFYPC+7dxRnly9UofyGe7d6Cc4Y7y3 2VPw== X-Received: by 10.68.134.201 with SMTP id pm9mr36435984pbb.182.1363168718291; Wed, 13 Mar 2013 02:58:38 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id kb3sm28890985pbc.21.2013.03.13.02.58.35 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 13 Mar 2013 02:58:37 -0700 (PDT) From: Sachin Kamat To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/1] clk: Fix incorrect return type in clk.c Date: Wed, 13 Mar 2013 15:17:49 +0530 Message-Id: <1363168069-11331-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQnD5bYoV+MPomATfEX3uJI88WESpGAkGLY2zE3oNtSbYFdNjNTsZBfPxIkhYFTLFQ/8Gpek X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130313_055845_129245_D114D87E X-CRM114-Status: GOOD ( 11.66 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.46 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: sachin.kamat@linaro.org, mturquette@linaro.org, linux-kernel@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Return type of function clk_propagate_rate_change is a pointer. But 0 was being returned. Change it to NULL. Silences the following warning: drivers/clk/clk.c:977:24: warning: Using plain integer as NULL pointer Signed-off-by: Sachin Kamat Reviewed-by: Pankaj Jangra --- drivers/clk/clk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index ed87b24..467b31f 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -974,7 +974,7 @@ static struct clk *clk_propagate_rate_change(struct clk *clk, unsigned long even int ret = NOTIFY_DONE; if (clk->rate == clk->new_rate) - return 0; + return NULL; if (clk->notifier_count) { ret = __clk_notify(clk, event, clk->rate, clk->new_rate);