Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp41969imu; Thu, 20 Dec 2018 16:30:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN5xi8C76vzuBwzzfMfsaem+IJqoDGqgu8XKLli3EoFntD3HUXV7e7TcZnFt2ZRxWOHK/9lu X-Received: by 2002:a17:902:9a4c:: with SMTP id x12mr362535plv.94.1545352250779; Thu, 20 Dec 2018 16:30:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545352250; cv=none; d=google.com; s=arc-20160816; b=KOYVpu3sRmJ1FtjdLY31T/UsdotiV3mC78CrOa7e0atiYFW063+10EcbprKyv2UgDp eVUmHsxd+bpLnZ0F2aaXy1yx4nc3Vsed91VS5WxF8icGUcq2SaOTqE8jeQRB6xZQ8K2Z uhH9iTtQ4Mp8bghM7Bcd6b/YY1ruVFRG1ZsrxUrYSrri1nth58fHLBwUZE8unCwYwKxi WXqbri6WcnLBGaPXQFOa6Z1rnLsSpXnpFf9hYdudrBwLJ0oa4rNeAf10Ny8bU/52cX6q KsglpMrQP5jddlFaCquLQJyZFA5+sOMRKb/9wR7cEVtgUBPdb2HlTvoU9e9uzQkP2QtE CsOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=H35Ob/aDnvKZrMzq8WxiX3yR6eN+DYDMAAJ6bDGmWxY=; b=kRvGRfC22Vv6xhWVn0oupDVnlu1qJgoaiScy1seoAgqilMN14jRHuBnSsGCPhkcQ3F PqkS/S8zSaAU4h5iZHNNCS5XpJ6BvJOxEeRPkdEjQzfRWQ1KFn4kPEupjCix+QgFHzID 1kxwxmwtqvDsJXF+JaIMQAUUXMMJ/8gVxN2A0NHFgOXOxXDmNeUtInJ7nUIaWQTqoBoM E1VwNo4P/gsYwj63bCaeubDk3UAF3lFQStnEUv8R6/3Ncy6tTxBYzWNDgPv+ClxUx+Is SIzE9ehvI8IR7y+h86HstoHe743Nd9AVUUqlicQaQlDXfjsP7yyJbv01Tp75m1dpPqtj x4sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=ZkyLmSmN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15si19882758pgv.351.2018.12.20.16.30.35; Thu, 20 Dec 2018 16:30:50 -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=@broadcom.com header.s=google header.b=ZkyLmSmN; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388136AbeLTRqv (ORCPT + 99 others); Thu, 20 Dec 2018 12:46:51 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:33115 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388091AbeLTRqu (ORCPT ); Thu, 20 Dec 2018 12:46:50 -0500 Received: by mail-pf1-f193.google.com with SMTP id c123so1276249pfb.0 for ; Thu, 20 Dec 2018 09:46:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=H35Ob/aDnvKZrMzq8WxiX3yR6eN+DYDMAAJ6bDGmWxY=; b=ZkyLmSmNaBciIxce9s+GKdrmy2V34xlFcqG8J7luAPRN4/T/WR2s/K3HymGOvNpkH1 Lje4dAyQ8A/6YJymtn+oUNm5n62aINeFuKjU28D1ZTjQCBo9AVxaphqlRYAL/g6y6/wj WI3GqMWLCt3ZG/yKdrDVEkGpHD/P3qHEsoAK8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=H35Ob/aDnvKZrMzq8WxiX3yR6eN+DYDMAAJ6bDGmWxY=; b=c1qEUe2o1x5OhM20fEgjU4zmFi7mYtIydl05nLBKpHL3HjqM00zl/puHwOpbZtFTjW qvD8HauZ7m1XGqTmJOcUGLxvUIKlIr9Ye38sRgSGXaa8sg/M3/VJMl1Pef8Hm67XzDNB EFlE76itcYLdXfAMKstAKbnI/Tqq8gRVumvpXUD20vxJ4RgwQJFwltSy1XJjTlfHSdGa /q/5vzLzteSJS0rSYAfErQdqdm4qs8sd8tJieqylyBhlB1/rh5nrScfA88EZ8N1ZJRvP PuxUSqGvj2XRbkaGGrJXzUK4OjVdN/dU+FSd0TOedZ2BpBOn/pvkmjb+jn+aIxMC7e2Y 3RGQ== X-Gm-Message-State: AA+aEWa33KaNZPDO3CZdTwjb+p9NK5CC8/kKXxvayDgCeel9pQSO6x8z H4fYNGBS132Zbqtoob1y2LDeSQ== X-Received: by 2002:a63:5f50:: with SMTP id t77mr23979855pgb.76.1545328009708; Thu, 20 Dec 2018 09:46:49 -0800 (PST) Received: from [10.136.13.65] ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id c67sm25988380pfg.170.2018.12.20.09.46.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 09:46:49 -0800 (PST) Subject: Re: [PATCH v3 04/19] mailbox: bcm-flexrm: Use device-managed registration API To: Thierry Reding , Jassi Brar Cc: linux-kernel@vger.kernel.org, Vikram Prakash , Florian Fainelli , Ray Jui References: <20181220172002.9016-1-thierry.reding@gmail.com> <20181220172002.9016-5-thierry.reding@gmail.com> From: Scott Branden Message-ID: Date: Thu, 20 Dec 2018 09:46:43 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181220172002.9016-5-thierry.reding@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Looks fine - thanks. On 2018-12-20 9:19 a.m., Thierry Reding wrote: > From: Thierry Reding > > Get rid of some boilerplate driver removal code by using the newly added > device-managed registration API. > > Cc: Vikram Prakash > Cc: Scott Branden > Cc: Florian Fainelli > Cc: Ray Jui > Signed-off-by: Thierry Reding Acked-by: Scott Branden > --- > drivers/mailbox/bcm-flexrm-mailbox.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/mailbox/bcm-flexrm-mailbox.c b/drivers/mailbox/bcm-flexrm-mailbox.c > index d7a8ed7d8097..d713271ebf7c 100644 > --- a/drivers/mailbox/bcm-flexrm-mailbox.c > +++ b/drivers/mailbox/bcm-flexrm-mailbox.c > @@ -1665,7 +1665,7 @@ static int flexrm_mbox_probe(struct platform_device *pdev) > mbox->controller.chans[index].con_priv = &mbox->rings[index]; > > /* Register mailbox controller */ > - ret = mbox_controller_register(&mbox->controller); > + ret = devm_mbox_controller_register(dev, &mbox->controller); > if (ret) > goto fail_free_debugfs_root; > > @@ -1691,8 +1691,6 @@ static int flexrm_mbox_remove(struct platform_device *pdev) > struct device *dev = &pdev->dev; > struct flexrm_mbox *mbox = platform_get_drvdata(pdev); > > - mbox_controller_unregister(&mbox->controller); > - > debugfs_remove_recursive(mbox->root); > > platform_msi_domain_free_irqs(dev);