Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1058357imu; Thu, 20 Dec 2018 09:24:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/V+2plKxMa5tMQFRDI4YqM1Qo5aKkF5EPkxjNJz0x9k/C/XA7b2TnPG3PypkgF97eItxm4y X-Received: by 2002:a17:902:4681:: with SMTP id p1mr25644555pld.184.1545326681686; Thu, 20 Dec 2018 09:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545326681; cv=none; d=google.com; s=arc-20160816; b=X11RYAP6lACLW8eJjWz/7tWrn4fnXEv99Qaz+YPl4YB+Mi+lVaGoox2M9p/wwylUy4 XbHCqirQRfB56hnIJy+h52ltr1KUZUy4Fr28LawwN9mjos6bnimB+x1du5Bs7/wjdkhC 4h7X1rpGqPzJA7khjDjdtg55PAZvY2ZymOsP+Mx5kWcqKz0U3dltnEcjTxnJJ+BxXfdw K0zWJ1YllLNzUQyISVzbk44QAI6dOotnw4Nk7q27Fwao27PVNRE/d6WU/F4nW9qOpKOB JkbSCqzvJ5lh/9cARzqI8cK/WS5zmnrfjBdew8SGsCjWJke4w0VaXdjDFWFLR+0XpVun Su5w== 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=WsSnVBo8KJVkRT0Qz1vH8hLCjFF5IQ8192hboW8X5ek=; b=PQNVOrL+Ewc8qIzHqTNFsXIKahjmx3fbUvpHEmu1HS5+5Voz6NPyAB5AVYipD3QY37 r5VLjgw0P0ufDFR2BQw3ZIxRxRqT06DX1sTe9XtE3U3NJe5WJ/vbBvsiSVR8+ZsJkasJ FVxnS14ZsHjuW7q46mZbSmeJdZ5Te50wJsQQY9mjcOeRDuuoXLxc+QoG1XpQP2BvHTi9 cQ+e7yEKmdq5jFAp/gozcPWpRZRtuekhDTI4hNlEcvmtddGpu8qhyqe/aty0Zk+1PZ/Q XrAYvM05B6D3JTGaQN8l3g2QCW0RokWGZZr0Lsnw5yoRHVNWhakBSp8wnT6H5qgNzEYg +5Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O4fA7I9B; 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 b3si12307505pld.282.2018.12.20.09.24.26; Thu, 20 Dec 2018 09:24:41 -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=O4fA7I9B; 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 S2387937AbeLTRUd (ORCPT + 99 others); Thu, 20 Dec 2018 12:20:33 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:44774 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387923AbeLTRUb (ORCPT ); Thu, 20 Dec 2018 12:20:31 -0500 Received: by mail-ed1-f68.google.com with SMTP id y56so2374881edd.11 for ; Thu, 20 Dec 2018 09:20:30 -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=WsSnVBo8KJVkRT0Qz1vH8hLCjFF5IQ8192hboW8X5ek=; b=O4fA7I9B179pyeiNfNUBKyTW8gCMnYj/HEMrAVcafBrxWnGQpcLpj1y0GT8xiDfKY8 iF+UHGPZbA0ESGPAapaRJBsUqGT+Zq1Y3RmFOPuctIMrPtwG7ymLdduWhGA8bfgCPORo ENEQBPs3xOe+pz5rdVt3OrdrGG5B0vTaqzEPkVbhTKFxTpIM0VxVY4wpqEP/uiTFdYC8 qluef84jCN1Hbg66U52jB092LJtqtaGCVSomxW9AmBn6XA/POb9Dk+De8kICHQjdsRR8 EZQL8SDmPW8tB47w7CbocJhCuxY7K1C+jzbLgcHFcnima1Fga/unG6cYiwci1prkujme xrvA== 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=WsSnVBo8KJVkRT0Qz1vH8hLCjFF5IQ8192hboW8X5ek=; b=E09MVspWq3AojqA21ULhYVXoLF9A0IzfATKgCRmGOcagoJY8I41iS45FRSEDDZ0m9b DshcCSX3t5J2Li/SR3R2wmNUNCy8bUbOhZPZs/KLveRki8dPM+4GxC+VBaf+gm7vj7kj GOeJvP6eQl+6dGmutSEQe0/EPh4vj/LYY8kgyx1FWg3qCvYwsFAGURfwiLfNpONqrb9c QYpS9wHmXrB76RS400A104+0/2SSqxz2yW/TXg/Sl2dkkhWc6QT5H8+EfpSec2McHwt/ jO6M4CSjUpvdnR+zuMUzxa3W0aa8K4FpkUadliKXyvRqQUewMsS2A+5Iuzd+oXlUNR9n vydw== X-Gm-Message-State: AA+aEWaegZKs87jez7Aze9lAbTns8fElNzxV3SVn4zZA3PgmLfZ/DsZH 6RKAj5MjNgmn6zDGDJmBMAU= X-Received: by 2002:a50:c408:: with SMTP id v8mr17312134edf.144.1545326429761; Thu, 20 Dec 2018 09:20:29 -0800 (PST) Received: from localhost (pD9E51040.dip0.t-ipconnect.de. [217.229.16.64]) by smtp.gmail.com with ESMTPSA id o37sm6207778edc.32.2018.12.20.09.20.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Dec 2018 09:20:28 -0800 (PST) From: Thierry Reding To: Jassi Brar Cc: linux-kernel@vger.kernel.org, Bjorn Andersson , Georgi Djakov , Sibi Sankar Subject: [PATCH v3 16/19] mailbox: qcom-apcs: Use device-managed registration API Date: Thu, 20 Dec 2018 18:19:59 +0100 Message-Id: <20181220172002.9016-17-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: Bjorn Andersson Cc: Georgi Djakov Cc: Sibi Sankar Reviewed-by: Bjorn Andersson Signed-off-by: Thierry Reding --- drivers/mailbox/qcom-apcs-ipc-mailbox.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index aed23ac9550d..3cf2937be149 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -91,7 +91,7 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) apcs->mbox.chans = apcs->mbox_chans; apcs->mbox.num_chans = ARRAY_SIZE(apcs->mbox_chans); - ret = mbox_controller_register(&apcs->mbox); + ret = devm_mbox_controller_register(&pdev->dev, &apcs->mbox); if (ret) { dev_err(&pdev->dev, "failed to register APCS IPC controller\n"); return ret; @@ -115,7 +115,6 @@ static int qcom_apcs_ipc_remove(struct platform_device *pdev) struct qcom_apcs_ipc *apcs = platform_get_drvdata(pdev); struct platform_device *clk = apcs->clk; - mbox_controller_unregister(&apcs->mbox); platform_device_unregister(clk); return 0; -- 2.19.1