Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2330574imu; Wed, 21 Nov 2018 09:57:20 -0800 (PST) X-Google-Smtp-Source: AFSGD/WUvvUwS6n0bbOVtO80lzZsg+0WCYMQV6DEIc7i9HoRx3PaG2r0bASMyMl12XlaDCPMCEP3 X-Received: by 2002:a65:564b:: with SMTP id m11mr6694828pgs.216.1542823040358; Wed, 21 Nov 2018 09:57:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542823040; cv=none; d=google.com; s=arc-20160816; b=KmVN14dzYYMZ7aivC2a8JUHRFmaAqe2B9fzJLOD0XtPK5lOZzoi/8fq6OOqZ1Ay79/ KYM3h215OAECQW8mcKQ0DJaU/wjRwgEoInNnTCODs+XcotsifbsCW+mMuTbeglfHW45Q /z0pw9gaGrORgg5LCfuoVLZ4ytgI16ynyYrFPUkb0yjGIOM1cXDuXxzkipow0y5yADGM o9rnlJJu/46Yw/UIjugusaM9DCaoQMzoi5JqXxhGQ+swu3xyl09mp4U4enwRLdXT2Ttb fR/0so+dximF1cles25C7gSRTDtIAA9VpmdrgmRW49MdKSu/GMkSQROIdfX+eCCf87Hv SViA== 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=3jZzbzufkijj2Q6XEViuF0h1bEmtCA3b9mtgJuF57c0=; b=b+CQCfSjEDxYjpPeCiN1wx38fnrlRZNQWIFnfYjsyDKB6tQDNyzUawIFsPpMs06wyA uR4trIdPwnAGJaXj3xCnk2gj532LDSMDsZKBLTfZahyu2aKB88TeZ7XkAATwENQqPECW bS/3appAzrCquU4nO4wqAG2xRrpgEWKK2oM/xNM6t7zAjdfbYkWau+W9YIXYpPaibeva hNA2alsp5ZtIeYdW4tSIVS99h/lD2iUCaNuRMwibqMgyyAf89ReBeYT7coB+63cx96aT Y69GbUJuLLj9igS9NXQKwnf1TNVrscrB+avulX4t0/9X4w3DZ4M+k5/uS2jlu5Tj6nZ0 nEjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qMWB5LAK; 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 s8si10701334plq.345.2018.11.21.09.57.03; Wed, 21 Nov 2018 09:57:20 -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=qMWB5LAK; 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 S1731307AbeKVBaL (ORCPT + 99 others); Wed, 21 Nov 2018 20:30:11 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:33848 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730863AbeKVB3l (ORCPT ); Wed, 21 Nov 2018 20:29:41 -0500 Received: by mail-ed1-f67.google.com with SMTP id b3so5139633ede.1 for ; Wed, 21 Nov 2018 06:54:56 -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=3jZzbzufkijj2Q6XEViuF0h1bEmtCA3b9mtgJuF57c0=; b=qMWB5LAKglayGsfhEA3TDkz/Afm278+LyGYblly4kUDDnCqqBg5v8G8lXS2+j+SBMR ww0jjukmqejtwc5iegrtnIJnKIY+wxFp9hAzKB+k5HLw2OBhYgUOUJ1c8D2F02HIi3gv /xaa7RPVf+cG7ISclavVFCX9gYkW/A9XxMbt0UmvoZgLU9bTFB7UYjpbqcmDT9pFxy1Y +HjeZAtmeul4OANr4w5Lfdpm/R+I2oe0mKEvxi4aQCnM4K27/rN6F7qDFlG0rEXRYAE3 tnBBzzSK2U2d73egMLkvxT5dROKrkuipxhJGjwRWibQwzo0uomDTEulxH5QWwmLyB2Qy RajQ== 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=3jZzbzufkijj2Q6XEViuF0h1bEmtCA3b9mtgJuF57c0=; b=L/Ot7V4ouZ6PQw9M2J8DQ7Uft160notBZmw4NZD5pwIMXi2U+3NAC0V27RKICb5FX5 mjjKrDp+dWVty0tJOK76MSOE+anWsJTtlmnL2rrzYx++R4eIN+WKfLXEIFyeH+PmqExv WtxjSnHcz41jxNl+9odF4nvocrb+rf0zgdXiJMHerqpG2PbXOacq2FuPCG9R6DHspoKv 3XT+hsDAOHzt/3vV720883K3TMCFLCJNi9ri5UaiwmJzcra8/s8u1agxBd16W2MYiJzA D6DynIu4lPAd1nXNscEK4zBESGx+pk6CrnqwyjasEvlpvIu7a/tyVbcYT7csxUmLt2la /U2w== X-Gm-Message-State: AGRZ1gJlvcSPPiwTdbJ2wxk3yt+Fp9uAvb9ZR4jjnNTag357XpfNy7QZ eIV5rMc4TTkIP40uIacl6eDaK6AW X-Received: by 2002:a17:906:2acf:: with SMTP id m15-v6mr5238449eje.180.1542812095221; Wed, 21 Nov 2018 06:54:55 -0800 (PST) Received: from localhost (pD9E511F8.dip0.t-ipconnect.de. [217.229.17.248]) by smtp.gmail.com with ESMTPSA id p36sm3672751edc.78.2018.11.21.06.54.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Nov 2018 06:54:54 -0800 (PST) From: Thierry Reding To: Jassi Brar Cc: linux-kernel@vger.kernel.org Subject: [PATCH 16/19] mailbox: qcom-apcs: Use device-managed registration API Date: Wed, 21 Nov 2018 15:54:26 +0100 Message-Id: <20181121145429.7582-17-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/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