Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2967079imm; Sun, 30 Sep 2018 08:49:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV600JL5MG3+0VMCI/0aKWMub3OHBUwPIze3SfJhGGobBh9ZMfrufqch0s5oBsRsLrOAewL1U X-Received: by 2002:a17:902:7402:: with SMTP id g2-v6mr7726625pll.321.1538322546648; Sun, 30 Sep 2018 08:49:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538322546; cv=none; d=google.com; s=arc-20160816; b=Oto7o/2QIePEaCV7pvIaCtlnAvQZ9CsOv+qOZgrhutsAuJA/aNe1y0QL6cJM2HTweq xU8e/PknoNqSHz6yrE6057XMkFv3IxZsCLTfifmQ0kvOHH0Pu1f3ZCO/9AxT3OL0dgrn 57yJqw5r+XnUxR+XUMZVIVkOG52QBamPf8X5LuWc5P0Q4/u7K4FOOCfXX3oGmuxZNxtw cFJNoOjUU9hVIoJnH1pqDNwmLtNVngf80PsgRwtCc/CeAd/pcLuv6C2Y8SU6V5Fre774 nNziL2Bpg+nTfP9MRcy9I3LLl7q+Ilzjpq7PgNzu/EXvnreuFNzz1Uyg61Rc7FG01QDB yx0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=O2iBwEdpu7xY+tBPr/ae+gW1XQLrCwN5CfhYjqQ8DlI=; b=hlIlE6FMbaQX6WsCU3QGpAJHE7UkhEOjbV3G0DrFjzJLMtIwGP2HSP+ORNWrC4Pn+K 5Pj+UEaqw0dJm5jqtPN+x1ai+t86jdHJcZ7N2azNY2dBx3WiRMsINJT4ev6MCBn2WU8e D+fvQdznTrIkfT4fwb1uDr7Sf5hseK9OzhTEkLtjGKj6z6k5AJO9EDuUQ2FqvG5R83SJ V8cIBuaoWr5+TxxYqOVXS1ZYVZ4el/SWlpElgfmlgCbHN5W+bOhTbEx8mZCCGwX3bTi5 BD+2UBrCxCRxjpzdnEpexWtXjeoZehCUKaMD7ffls6IAErQYsYp9TnvFPVSUB20ok/1B atiw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a5-v6si9975324plh.312.2018.09.30.08.48.51; Sun, 30 Sep 2018 08:49:06 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728532AbeI3WWS (ORCPT + 99 others); Sun, 30 Sep 2018 18:22:18 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55132 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727504AbeI3WWS (ORCPT ); Sun, 30 Sep 2018 18:22:18 -0400 Received: from localhost (c-73-221-170-44.hsd1.wa.comcast.net [73.221.170.44]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 27591E32; Sun, 30 Sep 2018 15:48:46 +0000 (UTC) Date: Sun, 30 Sep 2018 08:48:45 -0700 From: Greg Kroah-Hartman To: Alan Tull Cc: Moritz Fischer , linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org Subject: Re: [PATCH 5/5] fpga: dfl-fme-region: Use platform_get_drvdata() Message-ID: <20180930154845.GA13200@kroah.com> References: <20180912144327.3130-1-atull@kernel.org> <20180912144327.3130-6-atull@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180912144327.3130-6-atull@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 12, 2018 at 09:43:27AM -0500, Alan Tull wrote: > 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 51a5ac2..3fa0de2 100644 > --- a/drivers/fpga/dfl-fme-region.c > +++ b/drivers/fpga/dfl-fme-region.c > @@ -66,7 +66,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); This is nice, but not a bugfix. I'll wait for 4.20-rc1 for this patch. thanks, greg k-h