Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756210Ab3CMJ6k (ORCPT ); Wed, 13 Mar 2013 05:58:40 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:54929 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754855Ab3CMJ6j (ORCPT ); Wed, 13 Mar 2013 05:58:39 -0400 From: Sachin Kamat To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, mturquette@linaro.org, sachin.kamat@linaro.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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1021 Lines: 31 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 --- 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); -- 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/