Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp615977imm; Wed, 23 May 2018 02:41:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpO2JmVnqxW9M2xNN7T51l/ba3RhEEyyXzXLpxBDuTnvWmvUyF8skTkeXNZaWUqH3+y8KYj X-Received: by 2002:a62:f55b:: with SMTP id n88-v6mr2176951pfh.208.1527068497035; Wed, 23 May 2018 02:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527068497; cv=none; d=google.com; s=arc-20160816; b=GhnD6hITD1UJ7EqwlaqRyDZQE+JBO09rpweE9VbKVLw5a64gzXK1acbV7GYW0cwyLr SkWk5SGVnOHFVwpK8TCaE9cSNVgpFj5Cm/lVYd+ykhwBe+hwE3Z5dBaXMPJd80pROQ3F GUSWNb0X3HvDeVHAOsbmwAHBCUi/J79cz8frMGE1jkBuOUO/ku2UWc8DyfupTpOY7LVf m24GTTQfKuTmUDxFkO8RuF5YGWnb8qXAdF6/sxrJKd5ITCMTMQELKSAtWGNIpztQLUPC yoxSwtAQR4uwoGQ4OTqer6FhfVsEV53hWOT2TVuG3ikZnc7dknQJjW8JBjqAg+n0VicN N4KA== 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=KIfAUMJfv0f1Pc2zILhbE4sGPyirRnfXWJZGbh00MdE=; b=AOiBAGgENuXWD9jT7nKFC1vKH8VFZbZYoyD4iAVqJ5W9A4DKqwOfiDUw4dOhvd9M9f AYCaersbudBSYoNRbKS9aomGv8LeNsgtQ5uWoh1oN6cj9tkfkS6Op947AkomOLlUlEEb K7IjXEoEcNNPXtsAX7E9F0poEU/vUbE8x2n6zAVPy7WJ3DyCz9IKCAp8f0d2pds9qwCp YVd4VwFEsOkuf466Mqd4mp/fA5/oUPrUDL8gMaApWtPjSgcAN5e0E5qSgbC+fFNpB1tP QQyd9CB00Cw2S2fnEgTxty4XMtDrxu6CPxiEg/K8b4MrwEmGtXGcXpgtXyEj3vkWE0Eg sodg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@armlinux.org.uk header.s=pandora-2014 header.b=QsKarZCN; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e68-v6si19078956pfl.132.2018.05.23.02.41.22; Wed, 23 May 2018 02:41:36 -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=neutral (body hash did not verify) header.i=@armlinux.org.uk header.s=pandora-2014 header.b=QsKarZCN; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932186AbeEWJk5 (ORCPT + 99 others); Wed, 23 May 2018 05:40:57 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:42468 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932137AbeEWJky (ORCPT ); Wed, 23 May 2018 05:40:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=74b46sWntKHD3HacS2cL6mZj5v5eJ3PU7enJEURY+oI=; b=QsKarZCNgSEDm/UsSxvnx8srV vvohg6NucfGscy9nw1F7ErapqcyHxo1jDb6S04npJlE4vqpIur7DZNUzUoj4ACQ+MMbTFoCLdX8YS c8zrPItphbhJkCTpS5XLKw0RWyNdISE0KYOiJ2lZC9QXRZM0Cg9FMRZEHaNl9My5gwWpk=; Received: from n2100.armlinux.org.uk ([2002:4e20:1eda:1:214:fdff:fe10:4f86]:39129) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1fLQGC-0000gh-C9; Wed, 23 May 2018 10:40:44 +0100 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.90_1) (envelope-from ) id 1fLQG4-00059p-EH; Wed, 23 May 2018 10:40:36 +0100 Date: Wed, 23 May 2018 10:40:33 +0100 From: Russell King - ARM Linux To: Ilia Lin Cc: viresh.kumar@linaro.org, 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: <20180523094033.GW17671@n2100.armlinux.org.uk> References: <1526729701-8589-1-git-send-email-ilialin@codeaurora.org> <1527066324-24726-1-git-send-email-ilialin@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527066324-24726-1-git-send-email-ilialin@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > + return 0; -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up