Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2977150imm; Fri, 24 Aug 2018 08:28:59 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYtrvlIFGhJ4itoA8Rd4B2/aSq7SoHGfxzPF4e7oj8GFilMLOwCspGNB04MYeUkhBSVzTDf X-Received: by 2002:a62:3a08:: with SMTP id h8-v6mr2488066pfa.61.1535124539050; Fri, 24 Aug 2018 08:28:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535124539; cv=none; d=google.com; s=arc-20160816; b=q166jLyfweIyznOYs7MjRcmdi81Ed13lVYX/uj3SUxnkBs3OxSSi+ZjmdTUXKmcHDz AoYp1Sd1PyHeSYCK4MH157YsrXN6rLqjxlYXjSPVrj16c9fYmXLWaq7+4+AsZsKWokED ElMQRzLj0K1Gyt+BEQqF7CJEHvuG3AGLSq1d/f5Np0ZfdfDjEkPuIhB+AcO9vGEZJrll O+tnY2xedCcX7vDIiPsfFraEhqwYIQ4WdZ/aZEVEhyjhEKEIjUVTUrwhlHea9agFzaay JG3byNszrLGKJVWrMoUn3FKDNt5yGPpWXw1+SLEdnYPTtr0jcpQYeglxYBoVmRbK3ctH y0yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=er0GzXSeVJtNhqN9ZifGbLZccCBBYHKursu1yRoIKcY=; b=b9Bb/dw0+AWw36g7v7DFNwiiNErCmb/F/983kT2poD8XAmGDe25OX82hazMG+ccSBO 636QAADkE1EKBw0YjAEOW8bTcNa6wFZzYCMV15PGy31geOFXwvulTy0Mz1Al3GqRdsIJ DG8krr7NvsbacFq4PtyfVhsuP9GoEn8OMV+hlIu3BVB6/ZP5s3+HdKyk8EyVV/GjO1Ge Y4x8Z7FRlwyKZrjUllYv0WNHl8QBMpRdmYfjmmzkWfEjo3WYdfx1a3jW160STf4LX1j9 R78wWjOFUlDaIa4k8Ke7Yi1exHarhcdZQqVGizwnELDbiRchsCbS75pOFTVf8fneYfna m41Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7-v6si7325584pgn.431.2018.08.24.08.28.44; Fri, 24 Aug 2018 08:28:59 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727811AbeHXTBh (ORCPT + 99 others); Fri, 24 Aug 2018 15:01:37 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:39050 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726801AbeHXTBg (ORCPT ); Fri, 24 Aug 2018 15:01:36 -0400 Received: by mail-oi0-f67.google.com with SMTP id c190-v6so15964777oig.6 for ; Fri, 24 Aug 2018 08:26:29 -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; bh=er0GzXSeVJtNhqN9ZifGbLZccCBBYHKursu1yRoIKcY=; b=O7Oc9l4DlTGXt+B+0colKEG6/NFyllQ7mnm0TpRzmxwVMLtFbX6OlBtAQy9a/3GP4L bywzObpVPUcfAwtsCqhY6Mn0hRrL5kgFQ1P13J23PCbij2Ssm5zaD2iORda6ASzzsnF0 +xxc3Ty1YOd4JdMwdpA130/UX//StitgAwQvke+jalQhNehQe9gaZPhbjPsPhNm+rvbV 3HhxJxo4c5+RV5rnx1EtmxFHqj7NP3fOOWe/Ov6LGy2JVLb8cTVnAsPTkh62XPxN6DDq +nCZwP4/VkxPpuOCoRn9zD5mfMaytGG/ntuk7BrlRlQCv2FKw0PZm8hxdAy1MyXWDMON S/Ig== X-Gm-Message-State: APzg51CZxVTIBDwbTYgdxFEco3jNqfLsi0pPgXpUHA7E/MbTeOCANJDR 2JXry1uGHLm8BNQe3rTNNk/+U306v9E= X-Received: by 2002:aca:d015:: with SMTP id h21-v6mr1973709oig.142.1535124388789; Fri, 24 Aug 2018 08:26:28 -0700 (PDT) Received: from localhost ([130.164.62.204]) by smtp.gmail.com with ESMTPSA id e143-v6sm12379606oic.56.2018.08.24.08.26.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Aug 2018 08:26:28 -0700 (PDT) From: Moritz Fischer To: hao.wu@intel.com, atull@kernel.org Cc: linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, Moritz Fischer Subject: [PATCH 2/2] fpga: dfl-fme-region: Use platform_get_drvdata() Date: Fri, 24 Aug 2018 08:25:13 -0700 Message-Id: <20180824152513.8336-2-mdf@kernel.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180824152513.8336-1-mdf@kernel.org> References: <20180824152513.8336-1-mdf@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use platform_get_drvdata() in remove() function of the platform driver rather than dev_get_drvdata() to match the platform_set_drvdata in the probe(). Signed-off-by: Moritz Fischer --- drivers/fpga/dfl-fme-region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fpga/dfl-fme-region.c b/drivers/fpga/dfl-fme-region.c index 0b7e19c27c6d..11d3c23a8936 100644 --- a/drivers/fpga/dfl-fme-region.c +++ b/drivers/fpga/dfl-fme-region.c @@ -65,7 +65,7 @@ static int fme_region_probe(struct platform_device *pdev) static int fme_region_remove(struct platform_device *pdev) { - struct fpga_region *region = dev_get_drvdata(&pdev->dev); + struct fpga_region *region = platform_get_drvdata(pdev); fpga_region_unregister(region); fpga_mgr_put(region->mgr); -- 2.18.0