From patchwork Thu Apr 12 01:02:43 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Turquette X-Patchwork-Id: 7744 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 0522823E29 for ; Thu, 12 Apr 2012 01:07:44 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id B7569A18155 for ; Thu, 12 Apr 2012 01:07:43 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2812570iag.11 for ; Wed, 11 Apr 2012 18:07:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:x-gm-message-state; bh=uZXnjuqkzQl+hf9QfNqkWHYIggSymYrnXYtCFsHZTT4=; b=O59im2OTaF28Uj2uieCHsqfbQXhAmdDiPFvtmCKHo9zYlY0s47R4hTZfMmtentt0yI EQm1HG1C7+qK+z/D8025A19vCErHkenMz8bBsSEL6OsjF1eqpLS9viIVcXqMfRHnYJlz wcDEUxSbaAhMClA4AGGKzkvYAEL4AuHmILg95XDw8hwXyon9UrachyJWkZE2gSKE9rsG 9gMADqMo5nY1kLeRd4SWeQQle7H6kRWmRKfS4+wX4sBvcz2EL2ij3clswrGpr4/2YSs9 lRLN2aDjU5mXyu9iSaQ2K1Kk0KgKVZONv+hjLdedSpgqHBRRQzAENd7Sbjt5gCAYUtyO 5z4w== Received: by 10.50.194.232 with SMTP id hz8mr319699igc.38.1334192863375; Wed, 11 Apr 2012 18:07:43 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.164.217 with SMTP id f25csp161843iby; Wed, 11 Apr 2012 18:07:43 -0700 (PDT) Received: by 10.182.13.99 with SMTP id g3mr687859obc.22.1334192862703; Wed, 11 Apr 2012 18:07:42 -0700 (PDT) Received: from arroyo.ext.ti.com (arroyo.ext.ti.com. [192.94.94.40]) by mx.google.com with ESMTPS id as5si1774611obc.106.2012.04.11.18.07.38 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Apr 2012 18:07:42 -0700 (PDT) Received-SPF: neutral (google.com: 192.94.94.40 is neither permitted nor denied by best guess record for domain of mturquette@linaro.org) client-ip=192.94.94.40; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.94.94.40 is neither permitted nor denied by best guess record for domain of mturquette@linaro.org) smtp.mail=mturquette@linaro.org Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id q3C17bMQ018261; Wed, 11 Apr 2012 20:07:37 -0500 Received: from DLEE74.ent.ti.com (dlee74.ent.ti.com [157.170.170.8]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id q3C17bNP002654; Wed, 11 Apr 2012 20:07:37 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DLEE74.ent.ti.com (157.170.170.8) with Microsoft SMTP Server id 14.1.323.3; Wed, 11 Apr 2012 20:07:37 -0500 Received: from nucleus.nsc.com (nucleus.nsc.com [10.188.36.112]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id q3C17Pn6005839; Wed, 11 Apr 2012 20:07:35 -0500 From: Mike Turquette To: CC: , , , , Shawn Guo , Mike Turquette , Olof Johansson , Russell King , Sascha Hauer , Richard Zhao , Saravana Kannan , Mark Brown , Andrew Lunn , Rajendra Nayak , Viresh Kumar Subject: [PATCH 05/13] clk: use kzalloc in clk_register_mux Date: Wed, 11 Apr 2012 18:02:43 -0700 Message-ID: <1334192572-12499-6-git-send-email-mturquette@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1334192572-12499-1-git-send-email-mturquette@linaro.org> References: <1334192572-12499-1-git-send-email-mturquette@linaro.org> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmqTSMvNTKV8aUAW6FHVJJVkek1PGNjiGYWcUy17OHd952A9QzGmilpSoMd+oUPRmJV/cY8 From: Shawn Guo Change clk_register_mux to use kzalloc, just like what all other basic clk registration functions do. Signed-off-by: Shawn Guo Signed-off-by: Mike Turquette Cc: Arnd Bergman Cc: Olof Johansson Cc: Russell King Cc: Sascha Hauer Cc: Richard Zhao Cc: Saravana Kannan Cc: Mark Brown Cc: Andrew Lunn Cc: Rajendra Nayak Cc: Viresh Kumar Reviewed-by: Viresh Kumar --- drivers/clk/clk-mux.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index c71ad1f..50e0595 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c @@ -97,7 +97,7 @@ struct clk *clk_register_mux(struct device *dev, const char *name, { struct clk_mux *mux; - mux = kmalloc(sizeof(struct clk_mux), GFP_KERNEL); + mux = kzalloc(sizeof(struct clk_mux), GFP_KERNEL); if (!mux) { pr_err("%s: could not allocate mux clk\n", __func__);