Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1058267imu; Thu, 20 Dec 2018 09:24:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vfo7pcurDJTKH7og1ZZE/FnmVbC2/zeMLONQBDki5dShep9i7yihkx1tVg9OAZcjOAjoW9 X-Received: by 2002:a63:ef47:: with SMTP id c7mr11512987pgk.386.1545326676945; Thu, 20 Dec 2018 09:24:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545326676; cv=none; d=google.com; s=arc-20160816; b=OgbRNZvDfT4R/iAUsJFv84mQwmbVi/r4DvKwqam8Y/7phW39MyMYaBvrT0yDR5lTD2 FMA5B1em2algh2HmkvWGdQC/eBFPTQVPEFABbaMdnPuo0ZA8uqpS4b64pKHW5pSPQMsN fVXTZTTNfIwxP1/TD9q/4u6DlzSucrICh0lwbgl3T2BFuB5BLTCBizv5uDZBeIZYuUcu OR7PfdJGhctt8TjsbglxwBw3PW3OxF+E8CgWuXg8ib4eiQds9hxG0HpL3VDPJZAAg5+d brAZnzewoOByAvraeengJxNd+D8jZmh9xb3DEK7gzHhGECVDpcV8Y5QMQSLzBIqNMnU6 p3Rg== 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=Jlet1gmOp0nMztTIDjXylbPLAAUyw6ocJIKxfagKKjE=; b=fAJseoEFGN9ue7YIvXVgf9gd0Csnz0FmgqZH6cvjXjmIxackHUnaab1aFm6cRIE8xb HANbloUhI9AnndAraMDl1uiGR42hLvJXcvdPrlW2WUP1uOrI4FYAuRrmrd5jVs1PQy+X lurbjIRw5iDJVetjhv1NAyXMiEMLe6Ueq+jl4rS6NITjsazrJ7vqCQEII7N6cUcldZD/ RZkeRCKGD1IoDAQICDwvfkS/YcstKd/mgYaOfwFP57HTRxYo/D3MaQmqtSWbKktLiwYy P2DQfH5FdgLt+w0QNJuJ+RjEi1jjV8+dbnWKooX/3AQaN4HKWQdS2AGKVGVAFbDKHbaA nm1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="qF/7ESn0"; 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 j14si19486677pgg.44.2018.12.20.09.24.20; Thu, 20 Dec 2018 09:24:36 -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="qF/7ESn0"; 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 S2388053AbeLTRVs (ORCPT + 99 others); Thu, 20 Dec 2018 12:21:48 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:45555 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733204AbeLTRUN (ORCPT ); Thu, 20 Dec 2018 12:20:13 -0500 Received: by mail-ed1-f68.google.com with SMTP id d39so2371382edb.12 for ; Thu, 20 Dec 2018 09:20:12 -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=Jlet1gmOp0nMztTIDjXylbPLAAUyw6ocJIKxfagKKjE=; b=qF/7ESn009kLIDBRfWi6VtjFqJzSugFy0AJiZoGvol6NLzPWFdLO1RKivZMNhn6+Ad QafWEUAUk6xswXP26CIk+9tz7O9naDHiIE5dZaM402800/lAeFkGP2ly7aKZwLt2dSVx au3bNnJw4AbflzgNH2XuD1mSBd6yo2e+dKNSqqSpRJX61hWy69IN0zM046IfCd9JoRaC h9lyiIQD+mMiqucoLiXNznapP4ldZVjWnNcKrYFygi2c8mp9Z+3cWCKw/nxZyErTBfCv oDCa66kLlF5f7/ZtbCC3XKIg2/m808xDBUb2/OBUp8F1IWL2BHYA6zl1XkpN7RYDDC1b ELNQ== 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=Jlet1gmOp0nMztTIDjXylbPLAAUyw6ocJIKxfagKKjE=; b=mmMSp1unMcLn9eC1PNuN223kRUFck8nOwXaLcr0CqCUoWX6UZcJeUUmmwxGNoCN6C2 LFtepFIFdjzMt8TqVBigUSWt/XFX6D0iLtjVOHngvcGMQXV3tvgMAjd6V22jMKLIr5eP 4Wg40Is2ltZJ3AsbI1O32nmdBsHMw8H1l+VnAC6yhKYbdEuIdWb1Vhly1ChUScKvHFfR 5IgIZdntsnUXIS8AAE9KF+npCeso0n29qvP03HyzPiOaL20NWgWXGFHisW3xKttwWpL8 r4FS36BDrS1ftlUO2fn5cdbpiFvAOuq273TdCcJMD/2A1tgoD9DwMvqyetYKRDhHLslV Ev+w== X-Gm-Message-State: AA+aEWasTWmnQxTyHT88wROzWs2ISudugYEZhUFS9fKe0pE2snApRFOf 3VEA/CMW3zLdxOsAeLjUUis= X-Received: by 2002:a17:906:f84:: with SMTP id q4-v6mr14849071ejj.52.1545326411231; Thu, 20 Dec 2018 09:20:11 -0800 (PST) Received: from localhost (pD9E51040.dip0.t-ipconnect.de. [217.229.16.64]) by smtp.gmail.com with ESMTPSA id q50sm6289772edd.66.2018.12.20.09.20.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Dec 2018 09:20:10 -0800 (PST) From: Thierry Reding To: Jassi Brar Cc: linux-kernel@vger.kernel.org, Vikram Prakash , Scott Branden , Florian Fainelli , Ray Jui Subject: [PATCH v3 04/19] mailbox: bcm-flexrm: Use device-managed registration API Date: Thu, 20 Dec 2018 18:19:47 +0100 Message-Id: <20181220172002.9016-5-thierry.reding@gmail.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181220172002.9016-1-thierry.reding@gmail.com> References: <20181220172002.9016-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. Cc: Vikram Prakash Cc: Scott Branden Cc: Florian Fainelli Cc: Ray Jui Signed-off-by: Thierry Reding --- 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); -- 2.19.1