From patchwork Sun Oct 4 05:14:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 11815509 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2016B15E6 for ; Sun, 4 Oct 2020 05:15:18 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E129F206DD for ; Sun, 4 Oct 2020 05:15:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="xcEDsQYb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E129F206DD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Xc+2Z3Izx93WEaJ1EZFYQo+vy3G1njNMvSGnhGXZLwo=; b=xcEDsQYb8AY/MbeN766YdVEM/ tqU0lrUHpIl2Ur7yPQ12D5AHdO+XiBbmOgY02y6TrZ8zDHrhcvZWDzUvD8X4Rs5ue0emutXldaCby Kbn4enIYO4azo7bJuW21CGEtXm9Lr/u5VuUh7s7Uuv+NRhmMUFJWd12KN3D8H2HwI6Y1bTgFcD5dQ dz48PZxPc22qoEzGFhUqccZ/xx0LXMZOwMfG70jIWHrF1gcreRvmIAIWTgCdlJBz+ln68YwEgUWLs yfceI5vyWqglLFMHr3mVPtWvTnHixRFMU4UlyZjVGtd6Z67hMFbKPTst58og7DMeGfjjBKMuAyM/q I+AE5Ki0w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kOwMN-0007Go-Su; Sun, 04 Oct 2020 05:14:59 +0000 Received: from mail-pg1-f194.google.com ([209.85.215.194]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kOwMF-0007Co-Vw for linux-arm-kernel@lists.infradead.org; Sun, 04 Oct 2020 05:14:53 +0000 Received: by mail-pg1-f194.google.com with SMTP id d13so3617994pgl.6 for ; Sat, 03 Oct 2020 22:14:51 -0700 (PDT) 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=jSj7Q4DJpFXdzJS4vXtNFyUBZMMtSs/e2uyvh4UrDmQ=; b=mBLFbPDz7srUqpXWxb7H6K9tLmK2fudVtMr1SchwFciDBG144HhtOTPbR+O1Bp7n3z 5Vs0q+x2DqfCmv6he1tv64oZ1sJ9vUpuxUV3Q6NFgz0e/G9GK91vKLlt1XRkkf2PUeqz 27lQSFuVd7VXH7qBJH1736yYDTyg05sdwiEgRj8wpD0E+nkGiLl86SaoeEV9ksvxmQVB Qepp8eNDENWmoN0R5XDNDlJSSQNCz9dkdyTh1rsEue2Llk4OE334icAJOGG+XfWNx8nq ph80/8GeX25G/x+WAZifUtUMwcckZFoZR1p1V2rwqHU7AmT73nI7XwPDmBY8QIqHX6ZO D0rw== X-Gm-Message-State: AOAM532eQaJ6zr3KSOYXjyXEgierx8AIsSSSkXsc6z57JVppR5lwW3p2 a6+kcFEV43AVfEMCGZtnx2I= X-Google-Smtp-Source: ABdhPJybuo0dyW8OLj8mYrHhMS47SCaTGtBZJS+mWm/CWtLz6MfEeeQJWsN379s5pc735Hfm4Af9vA== X-Received: by 2002:a65:4987:: with SMTP id r7mr8670662pgs.228.1601788490855; Sat, 03 Oct 2020 22:14:50 -0700 (PDT) Received: from localhost ([2601:647:5b00:1161:a4cc:eef9:fbc0:2781]) by smtp.gmail.com with ESMTPSA id u2sm6249750pji.50.2020.10.03.22.14.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Oct 2020 22:14:50 -0700 (PDT) From: Moritz Fischer To: linux-fpga@vger.kernel.org Subject: [PATCH 03/10] fpga: fpga-mgr: dfl-fme-mgr: Simplify registration Date: Sat, 3 Oct 2020 22:14:16 -0700 Message-Id: <20201004051423.75879-4-mdf@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201004051423.75879-1-mdf@kernel.org> References: <20201004051423.75879-1-mdf@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201004_011452_033030_F41AD842 X-CRM114-Status: GOOD ( 13.55 ) X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.215.194 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.215.194 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [moritz.fischer.private[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: russell.h.weight@intel.com, trix@redhat.com, michal.simek@xilinx.com, matthew.gerlach@intel.com, linux-kernel@vger.kernel.org, Moritz Fischer , linux-arm-kernel@lists.infradead.org, hao.wu@intel.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Simplify registration using new devm_fpga_mgr_register() API. Signed-off-by: Moritz Fischer --- drivers/fpga/dfl-fme-mgr.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/fpga/dfl-fme-mgr.c b/drivers/fpga/dfl-fme-mgr.c index b3f7eee3c93f..3fc2be87d059 100644 --- a/drivers/fpga/dfl-fme-mgr.c +++ b/drivers/fpga/dfl-fme-mgr.c @@ -316,16 +316,7 @@ static int fme_mgr_probe(struct platform_device *pdev) mgr->compat_id = compat_id; platform_set_drvdata(pdev, mgr); - return fpga_mgr_register(mgr); -} - -static int fme_mgr_remove(struct platform_device *pdev) -{ - struct fpga_manager *mgr = platform_get_drvdata(pdev); - - fpga_mgr_unregister(mgr); - - return 0; + return devm_fpga_mgr_register(dev, mgr); } static struct platform_driver fme_mgr_driver = { @@ -333,7 +324,6 @@ static struct platform_driver fme_mgr_driver = { .name = DFL_FPGA_FME_MGR, }, .probe = fme_mgr_probe, - .remove = fme_mgr_remove, }; module_platform_driver(fme_mgr_driver);