Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2450165ybl; Thu, 9 Jan 2020 13:01:10 -0800 (PST) X-Google-Smtp-Source: APXvYqyDdbPc6F1dDWgkRLIxpgw+qiN1URWL2GSsk0eLuqtjGpfXpJ9GgV6F//9cM6o5OSWsoGIj X-Received: by 2002:a9d:590d:: with SMTP id t13mr10450017oth.290.1578603670077; Thu, 09 Jan 2020 13:01:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578603670; cv=none; d=google.com; s=arc-20160816; b=W964nVsAUh6xu34f3SlEEN0gd9dVkUQlvcDAJSo7ie45/FVt1ZPMtKBi2brRSCAyTv JQOlLxbVxRiuACTgLXZsSPDNNMh+MhTTu4g258tcPCPfzlWS7ItWKm2qv/hjpYVHIZUS R/OWsJ7icp+WmopgEznOMyymvYaGGqcPHm/9XF+9qPIRL9oBZuvcogp7QggxeJnAh85Q BSmzjneQLw+GiGzia90sPf2gltHLiy6Kk4u388WM19O0ot485bgt5ELbH+qzNnmQZuh5 3v1oKgYzyg8Ye9emlHCCqAfq4vdbAzE4tidot2KbGfkodeqfq8RMOHIv6ikJMni/L7u1 SLLA== 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; bh=twOuUpbQw49zp8/G9wABCGIBfFXQkj0331JfE2v3Btw=; b=q6MgttprN7tkVnviQb1j+WvBuaGr+LiHevflG/HSz2cJMg9tPLDIKfSTceQwdU+4oo igAIxsP6jwoUzy8cei1GPXFCklj/Dtkc9XQB3oGv2/s39YSnpHULQNn0q9FSuxvaY3KB ErMubN8AFlNYL0qyk4O0tbyZuMzAwBxAHa3rNZ7BVAdwOfODBeF656aQ5UfgpQ+ntIKC bF3qXY7FZfp3ymNXqshRb9IzXnNGe0Db1272UO/UfrGlAZr4TnGjmUb/WiGGgxz4KS+Y AizFeM8+GceeDdDuiomTmKqR2hoy6LPTFNBmOh2VPOVOZ2+jyXQIw4YNjRLqZpAzHyoB FIJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IpkS1SiF; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i10si4900360otr.272.2020.01.09.13.00.58; Thu, 09 Jan 2020 13:01:10 -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; dkim=pass header.i=@chromium.org header.s=google header.b=IpkS1SiF; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730805AbgAIRay (ORCPT + 99 others); Thu, 9 Jan 2020 12:30:54 -0500 Received: from mail-il1-f195.google.com ([209.85.166.195]:32904 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbgAIRay (ORCPT ); Thu, 9 Jan 2020 12:30:54 -0500 Received: by mail-il1-f195.google.com with SMTP id v15so6398308iln.0 for ; Thu, 09 Jan 2020 09:30:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=twOuUpbQw49zp8/G9wABCGIBfFXQkj0331JfE2v3Btw=; b=IpkS1SiFTZyaeAz8LcGQFXVLSgaAWLn2D3zMJu8CW/ezuu9PLFx7/bjfx7abwWmzLe mH8tW0Vw5fBvvRp2ws6Un6gJxCwJoNsZZD2fl+HDzBFlm7L/9Zqd5PNw3slGZlzEiMtR cbe1AKq7Jcc1WxWM3FvvImDCU5swQxFhx+kks= 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=twOuUpbQw49zp8/G9wABCGIBfFXQkj0331JfE2v3Btw=; b=bBx4eqlFHVXrFg53XKHlcYUwXA8soqdepSkJzvYSrmywvX3dvnb6LtFeZhhGcZl3tY PdkobAzG/6A4xtLiJJa2OXbGAxI4uuZ9Rn9RDILFVWeZldseZtA9Byb0yey7lHLiVwoj vawNh1GCt3ZZcVQOMN05uR5yhoTyN9kxJ86ZviKImq2zw8DEa3kR1G9eCqi0SjZoyFyg 93tovFwe3u8gOVF4XF+FdZqIJDdFO0kcTfprE5sp7nRREHf31HNxcxA09z3/yllvH6fK I2yFL5KJ61bhdC2TkWVvc5bJthSOMWyX33QrYrK2pUUMsGGiuS+agKDePdaI/wVgo2TH lsoA== X-Gm-Message-State: APjAAAUESJ3/RHSqgLTbF1+l9qGKWixXuFZAl9633MI8Lo4I2y6qSwVo tBLIKXXBT6BGw1r2wwh9+TOT6Q== X-Received: by 2002:a92:911b:: with SMTP id t27mr9645184ild.142.1578591053869; Thu, 09 Jan 2020 09:30:53 -0800 (PST) Received: from chromium.org ([2620:15c:183:200:5d69:b29f:8fd8:6f45]) by smtp.gmail.com with ESMTPSA id b1sm2192114ilc.33.2020.01.09.09.30.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2020 09:30:53 -0800 (PST) Date: Thu, 9 Jan 2020 10:30:51 -0700 From: Daniel Campello To: Enric Balletbo i Serra Cc: LKML , Wei Yongjun , Duncan Laurie , Nick Crews , Benson Leung Subject: Re: [PATCH] platform/chrome: wilco_ec: Fix unregistration order Message-ID: <20200109173051.GA78461@chromium.org> References: <20200108093459.2.Ia8f971d42dcf892541a806b906414ddfbe4fea36@changeid> <9cf68a0b-ed58-168a-4c04-753a7a9f55bd@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9cf68a0b-ed58-168a-4c04-753a7a9f55bd@collabora.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Enric, Thanks for helping get this in. On Thu, Jan 09, 2020 at 10:06:37AM +0100, Enric Balletbo i Serra wrote: > 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 > I got this confused. Thanks for pointing it out. > > > Signed-off-by: Daniel Campello > > Is this patch fixing an actual issue? > No issue, just style cleanup. > > 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 > >