Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1839751ybl; Thu, 9 Jan 2020 02:32:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzdMyLxdi2oIJQ8PXlxRE0xtw9TbHeTFYHOZY0Xf/hEhaVCDiqtIR6N/oQBUR89D77rA/2g X-Received: by 2002:aca:1011:: with SMTP id 17mr2652050oiq.72.1578565934991; Thu, 09 Jan 2020 02:32:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578565934; cv=none; d=google.com; s=arc-20160816; b=BCdBotDYwHrREX2WgrLW9yBADLal4r3+RCnHOZIiMyaeOoa6/jG23vXfeggY9edORO 0v5qH18QBa95Rswku2PagGWeWyl5lmynp11GMcUb9PfMl39c/B8KTMdD/IXenNs7mN+l sQ8m9KRi6CxTLlaA8MpSIooMFNpsAkiBbrLc6eaPcBhrwVJBI17x8inBeuZ+8rcwi2Kw Bd2n5HtujpJNRr6hjM8dY6tkT0SIyFKK11A7ASvAY3gsukFPjNc7G+ip56pOVtxI9XLd GEZVaivejXqJEMvkxsP8V3pJb21BUn8AJu7K3wvteb/0djvrBORz0Ui6+rLTPlCzKuk4 Yh8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Wu8g2vhYO/tjOPk1Tw12PzXfHNPpwS6zg+LnA/LvMik=; b=gDmRAzFEC8+LVaBAqt2ndCdz7zqREerS3u4Sqaxx19zdakFZfgfdEj8fxCVxCSp90h QE6657Z44XMI59pEKKrX19BWwo67FRu0b0V0DZEXdXpc+GHyCVuysz65YX2rYTLrTOuc W3aZAK6LGcUvMjjrOteYzticoofw5Jmlgy0txH/7fTCHxdCpwJyZbddvJv5XhMyp0u32 RfJ0RGO6ojhctqJMathyxNz28Zs4hjKsOkletVPfJpPOg7jzESE7Rd6CAYzA4w5tBiJj rIDkYINdQQ4KJv3RSKoMDrwK1gm5cFm5ncD7zFHfalG4zaGq5ThFFBeJXdxMC3x9PLak icVA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t82si3522902oif.45.2020.01.09.02.32.00; Thu, 09 Jan 2020 02:32:14 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728740AbgAIJGm (ORCPT + 99 others); Thu, 9 Jan 2020 04:06:42 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:38404 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728538AbgAIJGl (ORCPT ); Thu, 9 Jan 2020 04:06:41 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 1551C293290 Subject: Re: [PATCH] platform/chrome: wilco_ec: Fix unregistration order To: Daniel Campello , LKML Cc: Wei Yongjun , Duncan Laurie , Nick Crews , Benson Leung References: <20200108093459.2.Ia8f971d42dcf892541a806b906414ddfbe4fea36@changeid> From: Enric Balletbo i Serra Message-ID: <9cf68a0b-ed58-168a-4c04-753a7a9f55bd@collabora.com> Date: Thu, 9 Jan 2020 10:06:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20200108093459.2.Ia8f971d42dcf892541a806b906414ddfbe4fea36@changeid> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Daniel, Many thanks for the patch, some comments below. On 8/1/20 17:35, Daniel Campello wrote: > Fixes the unregistration order on the Wilco EC core driver to follow the > christmas tree pattern. > It is logical to cleanup in remove's function in reverse order to probe, but that's not related to the Christmas tree pattern. I changed the commit description and queued for the autobuilders to play with. If all goes well will appear in chrome-platform-5.5 > Signed-off-by: Daniel Campello Is this patch fixing an actual issue? Thanks, Enric > --- > > drivers/platform/chrome/wilco_ec/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/platform/chrome/wilco_ec/core.c b/drivers/platform/chrome/wilco_ec/core.c > index 5210c357feefd4..2d5f027d8770f8 100644 > --- a/drivers/platform/chrome/wilco_ec/core.c > +++ b/drivers/platform/chrome/wilco_ec/core.c > @@ -137,9 +137,9 @@ static int wilco_ec_remove(struct platform_device *pdev) > { > struct wilco_ec_device *ec = platform_get_drvdata(pdev); > > + platform_device_unregister(ec->telem_pdev); > platform_device_unregister(ec->charger_pdev); > wilco_ec_remove_sysfs(ec); > - platform_device_unregister(ec->telem_pdev); > platform_device_unregister(ec->rtc_pdev); > if (ec->debugfs_pdev) > platform_device_unregister(ec->debugfs_pdev); > -- > 2.24.1.735.g03f4e72817-goog >