Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp631659imm; Wed, 23 May 2018 03:00:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqPKDVaOdHVpJ6c455FWRhHYpKTEN+HbUHzEhlfwFmSbmFeimtcdTWVLbuNUTBr6jjnFVOw X-Received: by 2002:a63:4281:: with SMTP id p123-v6mr786900pga.144.1527069655017; Wed, 23 May 2018 03:00:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527069654; cv=none; d=google.com; s=arc-20160816; b=RjS9upq+vvM69LzgrlDi2gShZwTXo4EYAInWN1ZoNoV8OEg6QL6iEcGuAs3pS9WqDS Gg3px4hc4nPxQr9IdK42vq8se8ViAXgeyayez0ThjVqinNywml+9D2E0hKRd9SAlG7Sc nEYFvDskYTgPNrRbIrz/DbBLp6bkFcePbhNRg5r9aS2BG2vYoKOZ431qfAoHQgoBFH9v +aIVP9XfDobINHHFdmNXcSLxLFGZfT85+8WLwAWWw7N+C+3s29VgSnRsHeF7MewJWcsu Or52fZOn10Y09IpxXO2+4YjpkYx3aX7ZnWqp8VKKGzWcvA7jFSgrador32DaBsEbS4AA Yt1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=MDC0lLVXKOs9D9EPjbabqK8romxMqTKyuEl0nWjwlIs=; b=i5MojfvqlX1walXI76xc2a6UIbY8s91TZ5yLthGdC9YTgunAJZcoGiXrJ4ilXcnL4T hGaBMBTBP4roQl2zmvyzst4FcJ5PE/HRxoa9+CI6pV+ndike+NDFAC0v1rq7Yz+uHoJj zZNK3sfC3yUtFhAraibEa9V1AlVrV0Aichkq0wkFvvxyb53ceAbOBTxsb20enzDj2nlI c4cpDSUSwGzyMhLcd+I738juv0sucnpJeDBLcFA1tqGgUZ9iBE6m4EcPyvZotHt5Jdte raShRUpb7KAfxPs2V1eoV3jXAbQq/WEzfZMcLEQ9YiYmgmn29h93YaLxpmWB29j744r6 EoJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cm+w7LIu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q66-v6si18346178pfi.235.2018.05.23.03.00.40; Wed, 23 May 2018 03:00:54 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Cm+w7LIu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932350AbeEWJ7W (ORCPT + 99 others); Wed, 23 May 2018 05:59:22 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36155 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932241AbeEWJ7Q (ORCPT ); Wed, 23 May 2018 05:59:16 -0400 Received: by mail-pg0-f66.google.com with SMTP id u7-v6so689113pgp.3 for ; Wed, 23 May 2018 02:59:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=MDC0lLVXKOs9D9EPjbabqK8romxMqTKyuEl0nWjwlIs=; b=Cm+w7LIuTP+NJ2AD+Cp18dAwsEl9oQ/S6AcN42B/sAFQgePSJWxKWFghkHln9RzUVd pQCA8i+ggkEMWy0TyQ9V4TkDChty0jLUzt4lD2ZB9eY422XaPrKMfo8vhu0jGg6XoOeH wTFv5xA2W1b3aYN9rtwxCXmwmu8M7ST5kHUHU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=MDC0lLVXKOs9D9EPjbabqK8romxMqTKyuEl0nWjwlIs=; b=N+a0S41VikORE+TG+kViV9s+0G0f8UfsSxxIlLGnUbSn2o3Ro1jwMghSdiQu68KqgB FNLZm1WqQfrMxMijc/8kIXHwH2/hRO4ZbN4i5DBs67uqVJxKFaTwk1avEqc0Xh4wrPEJ ywHtkmQIicfj6Z8VuuvDSWjJk82GNGe7KjX+9gz9ikGqEhv1IDgyhqPHgMZm6yWIXr+S +bPS4XR3yo45lTH3UNko3bPsuXj5DtzM0gNv1PWv4ZYf5GOShFOMPOhr42HAD88cafcJ RFSEau4T0+CmgOo3vn4i5X+3Lo3dNjQqc5gbqsp9VMZjy2LX9qGf3Mxmfzc5wBe3wcZS DXjQ== X-Gm-Message-State: ALKqPwcZKqQDQJyw64nNKx1jYz+jA6LnA8arcRkL++q4mvUTmArHi5zb aifOLqPFs5JTsvZZJJ7xlF4g4w== X-Received: by 2002:a65:61a6:: with SMTP id i6-v6mr1775842pgv.88.1527069556447; Wed, 23 May 2018 02:59:16 -0700 (PDT) Received: from localhost ([122.167.129.138]) by smtp.gmail.com with ESMTPSA id l63-v6sm39248382pfi.6.2018.05.23.02.59.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 02:59:15 -0700 (PDT) Date: Wed, 23 May 2018 15:29:13 +0530 From: Viresh Kumar To: Russell King - ARM Linux Cc: Ilia Lin , rjw@rjwysocki.net, sudeep.holla@arm.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] cpufreq: Add Kryo CPU scaling driver Message-ID: <20180523095913.o6gfwz4e4owthb5p@vireshk-i7> References: <1526729701-8589-1-git-send-email-ilialin@codeaurora.org> <1527066324-24726-1-git-send-email-ilialin@codeaurora.org> <20180523094033.GW17671@n2100.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180523094033.GW17671@n2100.armlinux.org.uk> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23-05-18, 10:40, Russell King - ARM Linux wrote: > On Wed, May 23, 2018 at 12:05:24PM +0300, Ilia Lin wrote: > > + np = dev_pm_opp_of_get_opp_desc_node(cpu_dev); > > + if (IS_ERR(np)) > > + return PTR_ERR(np); > ... > > + > > + pdev = platform_device_register_simple("cpufreq-dt", -1, NULL, 0); > > + if (!IS_ERR(pdev)) > > Do you need to hold a reference to `np' here? I am starting to feel bad for Ilia now. The problem is that there was a lot of stuff wrong with the patch and even with so many reviewers it wasn't easy to notice all the problems it had. But you are right, this reference needs to be dropped. -- viresh