Received: by 10.213.65.68 with SMTP id h4csp575183imn; Tue, 20 Mar 2018 09:59:46 -0700 (PDT) X-Google-Smtp-Source: AG47ELt4U+6TjbKxJ9CKKWwzFUrv9ZGeq9guxRAOhyHgvL7gfu9S/mXssq3NqXCVuOhmsC68cOtf X-Received: by 10.98.77.197 with SMTP id a188mr1503486pfb.219.1521565186304; Tue, 20 Mar 2018 09:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521565186; cv=none; d=google.com; s=arc-20160816; b=LnBvkK/JvoxE0hjXj7taT92a0E3BV7krGlVBaSr0X4PERm0/3zNIhq8O/o973tI5/S YesaE7xHOk1X9UZB/SOpI8W1YIH5a7oApt4Yxhj81yqKuRU9EPzag5kgHL+C5fOTYpOC kfCJBPyHrJSnVU4ho44oqQMfL/Fr7hGrT110f04V8M+T59N2abMI9qviJdBWkI32m7b/ EroO3382c0cZ9FAZJkM11fMEUrwNjDWoAts7gEtcwMc0mvfBCKFoyQkCRL0+8TBonRxt +UPVxV/SP9xCfseu/AXPr7om5Abuvt+kVVlcPW56Q5yp8tmMSxJYWsVHzekH60WoTY+d f8Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dmarc-filter:arc-authentication-results; bh=yEIYPWGbidTyrqB8RprFKAm67eiddHmygJGUJBW0ZLw=; b=QJxEM6kwq7iappRm3XPOIzJOveFdwl073tKBGMg/7226TyNG7HLQOlp3se7b9YPLio NfK5b5M3DQxzzArb1MWgkhQ2t7GSehiGfroKgqT7JiQwL1t5lTs4/gmP/PM9IRSfAPCw vPa4ezMSeGrXfRlLU1FKLLtJCtNZ1L7L/cLNf45vkzYH8wKqjPdz7GT58RgNG9DuYcTC UHosrocoA36jil4NyFnXoDu4TTtgzyrrEfl0kz2HCfDrbuOyx8JgD7soam2xpsT/40RY 4YUQPCBBMKq3fBwZSio9FlJoSqc4oreK4hFB0nVKQhZ0zsCklGAxgPoGmg0zwkl6VJy1 +Okg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a13si1530948pfn.314.2018.03.20.09.59.31; Tue, 20 Mar 2018 09:59:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751870AbeCTQ47 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 20 Mar 2018 12:56:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:47174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751481AbeCTQ4z (ORCPT ); Tue, 20 Mar 2018 12:56:55 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 59C9921770; Tue, 20 Mar 2018 16:56:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 59C9921770 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=sboyd@kernel.org Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT To: David Lechner , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org From: Stephen Boyd In-Reply-To: <1521168778-27236-3-git-send-email-david@lechnology.com> Cc: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Sekhar Nori , Kevin Hilman , Bartosz Golaszewski , Adam Ford , linux-kernel@vger.kernel.org, David Lechner References: <1521168778-27236-1-git-send-email-david@lechnology.com> <1521168778-27236-3-git-send-email-david@lechnology.com> Message-ID: <152156501473.183971.10164660837276962553@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v8 02/42] clk: davinci: New driver for davinci PLL clocks Date: Tue, 20 Mar 2018 09:56:54 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting David Lechner (2018-03-15 19:52:18) > + > +static int davinci_pll_debug_init(struct clk_hw *hw, struct dentry *dentry) > +{ > + struct davinci_pll_clk *pll = to_davinci_pll_clk(hw); > + struct debugfs_regset32 *regset; > + struct dentry *d; > + > + regset = kzalloc(sizeof(regset), GFP_KERNEL); Should be sizeof(*regset)? I squashed this in: diff --git a/drivers/clk/davinci/pll.c b/drivers/clk/davinci/pll.c index 588a48927436..89d30bf95102 100644 --- a/drivers/clk/davinci/pll.c +++ b/drivers/clk/davinci/pll.c @@ -882,7 +882,7 @@ static int davinci_pll_debug_init(struct clk_hw *hw, struct dentry *dentry) struct debugfs_regset32 *regset; struct dentry *d; - regset = kzalloc(sizeof(regset), GFP_KERNEL); + regset = kzalloc(sizeof(*regset), GFP_KERNEL); if (!regset) return -ENOMEM;