Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1058603imu; Thu, 20 Dec 2018 09:24:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wm1NY4BotsxWWSCKwWsOkpeFKbyYRcAtT2yJpJuw5BshcZmDgps0b+IycUI4ufL9phQGVx X-Received: by 2002:a63:d50f:: with SMTP id c15mr22383235pgg.287.1545326695300; Thu, 20 Dec 2018 09:24:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545326695; cv=none; d=google.com; s=arc-20160816; b=LMx7GlV9IW/IYcfA68/wHJo/UzrEmyzvl82inDTZnDOF96M68FzegA1MK/GulxjFtZ z9armF9snw4gUvcxLg9TKFHODxbWDprXuUeWQcPcC9ogL1zB5yTkfp+fsVsPQBDsR7n+ XYwL+FLx3zIsULg2fkirJ3qDKedCycBZH7Tjgn9sK5wU4wIFbjN8VVNZj9lz/v1SoLr2 YnjnJmzJUhJzL2sB7IaewmJq88E6fAjes4neYIwCXwsLwQyaklqrjdwPIlSvUp4FtlmA /dA2NB9gOwi6iW0vev0XEK4lvx78kquuN+q457eVDPq7jUYgb10Qgft5ZMCjx4SsB3F/ Tbmw== 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=mbSGyI7MU2rG07NSp1FbrVt+xWkd1+3IlqfQ7Nl+dYg=; b=qNLxSqPko+HKAIZWChlF9F+Uctsbvd0XEkYzELFni+kZSIkoHdp1HgHfK+J5Lh6KeL t2ld4dyiOnrjwwP46/rMtz4wvzerNJaCtcUkOO4leM5EaUVK/oTfCDsOVsEMprphWdrz nn60GNgJLXDr9kEtLmqwjwYReFZP7ALOCUrrAUwCa07F56TfLBQwAqU55YkHDHJGnBjd SG88QmwFcYOrAx+9xBQ+FoGITutBeXS83xzfkEiEf6nT2YlocL2oxyOSsU8KocRR7k7A LJ/XUXDyk3bWWVCtvwZRCw8sezv2E5Vf+FnpINkNqM36ck0HlNH93WP/AoKJsPXexsyg PQfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="bF/oh96U"; 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 v2si18761502pgn.451.2018.12.20.09.24.39; Thu, 20 Dec 2018 09:24:55 -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="bF/oh96U"; 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 S2387884AbeLTRUY (ORCPT + 99 others); Thu, 20 Dec 2018 12:20:24 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:45566 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387840AbeLTRUU (ORCPT ); Thu, 20 Dec 2018 12:20:20 -0500 Received: by mail-ed1-f66.google.com with SMTP id d39so2371648edb.12 for ; Thu, 20 Dec 2018 09:20:18 -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=mbSGyI7MU2rG07NSp1FbrVt+xWkd1+3IlqfQ7Nl+dYg=; b=bF/oh96UqP58nEN1mSU1j1OyLGF834O0y6e8Il8KhlWJiQc6DYFetS/ICIePIW4Jux 2mhBA+WalSBy8CJvUtPpMnvr5UGVq/O2Tjmt7oCy+3EE1xNVi0vC1C0sz/GMiZMrnaAt ipNRdrjd8ZRApU8uVRdqMEAR7coNPGcQnXFajUMoXdszmfyajuJY7DY/qihBvs4Z2cf0 If7tgRlTQlWVrM1VpZh53G62YOl8DoC4eZXhp4eead8FF5lnkc2XrsDH1srfFvHPzePt ieDiRyo+AxUzMuIYaWvwugAZBc8gpQG/lYXxaz7VZ8GR3pwMebk4QD+vBxz4nTF8ePod dvKw== 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=mbSGyI7MU2rG07NSp1FbrVt+xWkd1+3IlqfQ7Nl+dYg=; b=pMbUJKvC+GSn0G8qUDG9MS/X70FeV6s4sftJhksozUv73EPJD1x/DtmuaywjTh3kX/ IPDQxg3Cq0k7taJvh+68d//R8loFj8fFoSpjLTOzm/tG4fAQfTbhDmZI97eRVOPVxH/r d6gQoj/6RcRcmRmRQ8vAFnlsIpp7OPJZPVHSIDom9GHhJV5+7CcnoT77FX9ckwVWircq DuWKi+9qX1dnBO666mzVqFSSvkvNgCELOvIdt+ocL5crmwCHYAUNSHFcFOhYgZogUyzB n+57apuwKWhpBdWxCv5JDi8IagDK9KGwK3TytWazfoRoNBe0x9Jhdex8cBAF9MRmyOKT gPng== X-Gm-Message-State: AA+aEWbWSCNh5SU3brZHnBq5/4M770/XfAIeNaABQiP4ki36tZOcPQU5 eK1L9rFVSHfgg6VGEVbFFAQ= X-Received: by 2002:a17:906:1b12:: with SMTP id o18-v6mr15121140ejg.65.1545326417302; Thu, 20 Dec 2018 09:20:17 -0800 (PST) Received: from localhost (pD9E51040.dip0.t-ipconnect.de. [217.229.16.64]) by smtp.gmail.com with ESMTPSA id t9sm6181027edd.25.2018.12.20.09.20.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 20 Dec 2018 09:20:16 -0800 (PST) From: Thierry Reding To: Jassi Brar Cc: linux-kernel@vger.kernel.org, Oleksij Rempel , Dong Aisheng , Vladimir Zapolskiy Subject: [PATCH v3 08/19] mailbox: imx: Use device-managed registration API Date: Thu, 20 Dec 2018 18:19:51 +0100 Message-Id: <20181220172002.9016-9-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: Oleksij Rempel Cc: Dong Aisheng Cc: Vladimir Zapolskiy Reviewed-by: Oleksij Rempel 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