Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2116261imu; Wed, 21 Nov 2018 06:58:24 -0800 (PST) X-Google-Smtp-Source: AJdET5cQztXz/M4X+OEf99M7hXZvrK/lWv1hv3Ri/MvX59rJ4VhuW/5sqEVkF7FRlQHCw9vrNPAy X-Received: by 2002:a62:8a91:: with SMTP id o17-v6mr7075123pfk.210.1542812304382; Wed, 21 Nov 2018 06:58:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542812304; cv=none; d=google.com; s=arc-20160816; b=FxiiixBGQ6lrLWtbmcHjbjCm4EXCcA2rgd6FTtXFPlLazhIPvXNCsnBkCZx8cF3V0b PVZcM6qkNcWFH09V82+Tgr7A+cWhWonktGHJQI/OhIrZwOGIobOINZtLsWd8loRSXgZO 5o+EN1iCZXKIlta/kD2d3GycmBP1ZFkFeBS9zxm7zsQ1QSy/M8NIrKwOBWzaFehp887K b8c/xDeKb31fUkkm8/4F2BriSQOtxbWHMWaReKG0WCO8odBzMHUPckV/ccsB+WjrqgNf lveCeBViIbIF8H7cUgkZCA8RIUHtCEIIOx4FE6mex0lZug9Da0rFHbY5PF3VrMFP4lbX 6HSQ== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=D0g5297Ph0oBQiTjb03G8l+LGEonV+v0N8AP6U2Tw8U=; b=CdDRjJ2ewYRt4Dm40yINJNY1Z0JWumKfCaGRJhzgN/a/jlvEppS6uqZzj1YJcZJX9K 9ffKiLqwTl4ca/Zyj4dm5WIEWC9ZScCfp3/1V5Wv0Nx2Xyz0iYJpO7n/s88wJw30V03Y CKEwFRrNYQRiSj1bcc/uH3a43U3jS9nQLkkPZFq/BXunl9w96LK7mcQubMEZg0W9IMXE HuwFPS6eYfv2AjogrrMHc2s7TkLvLQWFp+1qe991KLBQF1VTwqm3OMxOboxwsaRx2mKy KyerljLXk0NAbrQgFoCZLjuEXh1oCSK2fbthrysG8hgRN1RlPBaNJ+mShnx0I7m3KGKs 38Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rAqDaheT; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si21925917pgm.487.2018.11.21.06.58.06; Wed, 21 Nov 2018 06:58:24 -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=@gmail.com header.s=20161025 header.b=rAqDaheT; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731239AbeKVB3a (ORCPT + 99 others); Wed, 21 Nov 2018 20:29:30 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:43537 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731144AbeKVB32 (ORCPT ); Wed, 21 Nov 2018 20:29:28 -0500 Received: by mail-ed1-f66.google.com with SMTP id f4so5095787edq.10 for ; Wed, 21 Nov 2018 06:54:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=D0g5297Ph0oBQiTjb03G8l+LGEonV+v0N8AP6U2Tw8U=; b=rAqDaheTmUAcTlQIPqXzWlg6XLyHCNAzVM2XhCx19rd5Umn2bZsImFPg8L7J5hs6Wf Dd8HHN6sB0cfg9/aIrNlW1E8voIlQtXp3ykq+PtG+kVBkZ13jBMWwtgOqupeZP6k0o21 FQijW5VIkAwbLmxNx6rPBSLSO9t/aiNzzzAukYDUZPZ+wPMANySS5kbqJHGe0fsenRbf n2y2WfXVxRRJWfC9WCmGuUEZli53upKJyGIyvNOgE8sZ8cDOJuuITl2DPFbE4OtqU9WC uAHbP99Dc3Ba5N/MJW7ku1lXi4AbnCxHCFSD6cOzG2e6k13D/5cAl1FFmYimT/Z6AQb9 xUzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=D0g5297Ph0oBQiTjb03G8l+LGEonV+v0N8AP6U2Tw8U=; b=JISHULmSSNa6lc1C+jHFPVTQPPcTRoE4LkirhZeY7w6EH3bitejK43dThy8szlm5bH TsoRDisb08qq4p9qJB779NJc9a9+xNOXtGoUYZHAJyibNbmngmnHoE5+44bImR8C0ihR EMLhsQ35u6/Twv1dneM/8t6QK6bOajooex+yPJ+je/Y4GjW6QKPDXMyhLHHLaK/mjOHU QeLjIgDhWwrcSHo/8WRhqztpQwNP++pHcjfCDDCKxDWDnFEtx+4Ry/dPDwT4RBUOyazq U8N5gCwioaV77/AeCyxbMza+LUyMP5d/AxHjnamItwZq48L4j0PQUAdzQzHrF3M1t/J2 tujw== X-Gm-Message-State: AGRZ1gKT/7jwq1JSL5Mu9V4enyitBiHpFwgpAVdCirxEBJe2ydCFnKQb e2k+YCGmWLvv1KtDc61O4W/I2FhX X-Received: by 2002:a17:906:3488:: with SMTP id g8-v6mr5373081ejb.11.1542812082917; Wed, 21 Nov 2018 06:54:42 -0800 (PST) Received: from localhost (pD9E511F8.dip0.t-ipconnect.de. [217.229.17.248]) by smtp.gmail.com with ESMTPSA id m13sm11094963edd.2.2018.11.21.06.54.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Nov 2018 06:54:42 -0800 (PST) From: Thierry Reding To: Jassi Brar Cc: linux-kernel@vger.kernel.org Subject: [PATCH 08/19] mailbox: imx: Use device-managed registration API Date: Wed, 21 Nov 2018 15:54:18 +0100 Message-Id: <20181121145429.7582-9-thierry.reding@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121145429.7582-1-thierry.reding@gmail.com> References: <20181121145429.7582-1-thierry.reding@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thierry Reding Get rid of some boilerplate driver removal code by using the newly added device-managed registration API. Signed-off-by: Thierry Reding --- drivers/mailbox/imx-mailbox.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c index 363d35d5e49d..774362a05159 100644 --- a/drivers/mailbox/imx-mailbox.c +++ b/drivers/mailbox/imx-mailbox.c @@ -324,14 +324,13 @@ static int imx_mu_probe(struct platform_device *pdev) imx_mu_init_generic(priv); - return mbox_controller_register(&priv->mbox); + return devm_mbox_controller_register(dev, &priv->mbox); } static int imx_mu_remove(struct platform_device *pdev) { struct imx_mu_priv *priv = platform_get_drvdata(pdev); - mbox_controller_unregister(&priv->mbox); clk_disable_unprepare(priv->clk); return 0; -- 2.19.1