Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4475271imu; Mon, 12 Nov 2018 11:39:22 -0800 (PST) X-Google-Smtp-Source: AJdET5cYxUb989dF9x4IdOTRuSFZrzgaSn9r5CoBicWV/VhxZcIqLIPIQmk1+GVEZZXSqsOfU23J X-Received: by 2002:a17:902:2ac3:: with SMTP id j61-v6mr2094580plb.139.1542051562695; Mon, 12 Nov 2018 11:39:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542051562; cv=none; d=google.com; s=arc-20160816; b=hyD733z4rAc9SkebvN/tfhkncp29rqM85GgCzpaEQgBIZJq4wMyssflK9pfHBfqvpe j08HpGx+gnaubbA9K8f6hhPLkpse4229BexnOz5GOwts5bzYJn8D9b71F89ND/OzU6QF gkTNv1BVVEhYuG1qD6LPFfxSL8Wq70VqR9M6XWfCuZ4Vn+ElTX2hS/0btkKpeLGLG6ci 7pQygU2VeTtIGNeMlPjowh/DcIcQkIT9wxdMyabu84adEB//2yCOoQpnEaphc9SbJuDP 4bFgFU/TvjsDySKaL2FzvqPs/Cq2Pw9ArvHf/mMo3/u3FD4PHlUt8JTDbg/U27WyjSbx s9kQ== 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:dkim-signature; bh=gjvFyJLkrx3SijwwOaBivp7quNvxTNK84r239l+83fI=; b=vvorYrNswhjPiKElKc0y3sMglBeBSXoQIW8TpzjM5bU9I+gLZoathlU+8sRWQUQTn0 f+1XhnaHpgbOn/3FLNfzl9OlUPVy2O9fLCLgr7tdKZWGVCKFu58LcVMh3MkwJoUUnEyW qIzUbXULdDFCLi4hAdEkhPKR5bRicXDwqitDQlet/XJ98gB+Z7H2M1Rx9dZkB6k+G4Kf LwHeT4ptZhlK9p51wPgtiN4LhQJcnQVMfKR1D/x0u0RyQTMqo6oyuymUJMdRdJPcnEUq N1bXzqunx9cLaSdq6vqwMX5mYL+5ND45c0JR/XZeAjWHTXjeeA7/3McwbFDbAr5Ci5de TQzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=H3hM71ad; 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=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 c26si4250306pgm.210.2018.11.12.11.39.06; Mon, 12 Nov 2018 11:39:22 -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=@kernel.org header.s=default header.b=H3hM71ad; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728431AbeKMFdW (ORCPT + 99 others); Tue, 13 Nov 2018 00:33:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:33456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725749AbeKMFdW (ORCPT ); Tue, 13 Nov 2018 00:33:22 -0500 Received: from localhost.localdomain (user-0ccsrjt.cable.mindspring.com [24.206.110.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D12C422506; Mon, 12 Nov 2018 19:38:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542051522; bh=FIv9mvIAVFpEAUNmxtOtw51BmAjllxlaw4sDmux0eZw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H3hM71adAT/RAUSMMZ10Ud2LKSYxjNnkQaWkOwTrqEd+OX6gWO93+PVdlNUbsooah lgyNss98OkUeIVLRTxG3BH6siB9Mlcvzzo2NJOoKcnIMZxDljcDIDjfisWLKrfl0jm VATMYa6rPesh1/3uKM6M8aYnFAM//PafkJNZHoes= From: Alan Tull To: Greg Kroah-Hartman Cc: Moritz Fischer , Alan Tull , linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org Subject: [RESEND 2/2] fpga: dfl-fme-region: Use platform_get_drvdata() Date: Mon, 12 Nov 2018 13:38:34 -0600 Message-Id: <1542051514-5205-3-git-send-email-atull@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542051514-5205-1-git-send-email-atull@kernel.org> References: <1542051514-5205-1-git-send-email-atull@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Moritz Fischer 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 Acked-by: Alan Tull --- 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 ec134ec..1eeb42a 100644 --- a/drivers/fpga/dfl-fme-region.c +++ b/drivers/fpga/dfl-fme-region.c @@ -64,7 +64,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); struct fpga_manager *mgr = region->mgr; fpga_region_unregister(region); -- 2.7.4