Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5238512imm; Sun, 26 Aug 2018 14:23:22 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbkcuy24JxOg0/f3fK5OMIlhr7M14/FRyZ0SxDCFrzV0sy8lsKQbuW5yEPhNrItZBWKzFG6 X-Received: by 2002:a65:5284:: with SMTP id y4-v6mr9697828pgp.283.1535318602350; Sun, 26 Aug 2018 14:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535318602; cv=none; d=google.com; s=arc-20160816; b=UXqg/dYzfSgNbf1TQo8MxLFZNHMh/aE24Bv4u4JubAgPjptRek1eZeGKOChD4EgttV 9Ryn3K0txpnP98fFeWk0ilJlDVhHWqhnm/4vCR9Nm30T9AyHhj1llTf5tSsKNj8cTVLC Mkq9DlAe6Yk565bwRfPB8mR64orig0dkbdIvOC8KzYTQHjnd5s2rJcvDbWspYQFEkdfR NDBbaUxbwM8+q8x3aCMdHpzWe0kvfB6V8I8YnB+XqBKLoDkj2taOFSwYj25yuYZZUHwn 0lX14U8e+mpJNHt8kVcM7iiLBq/BCWopaiwunokJB61rcz3D2dyciDu60BQsqkbKYYsZ bOeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=DtCyTKptm4gHnpSvp/uVY+E0R9Y6sTuxKQVPbkIcjho=; b=Ve1zcK0kkk7/cSfm0KCYjRWqqiyVURgnu3fnmJuwGLMplWODuV8+K2jq7QahLINIde IjE8oD+e24LEsQ98Dc00OJqKxBPJrzmZbX54YQvpP0HJ5La5QBKP6rlfKLVs5Mrci9sJ uByGh61YA4S1s98SdEhYdk0i5Qay49+677NddvIsm+ItUKxgVs2WHz5GaGvl2BNCftoG tr3XzcKWZOM7VW0b0TKs+LGqcVeA5igt0htH+LptSfJyXscjt4KWSpRful3/X54b/DvH xoU9XJjBAmtkouU1cBleHxYsGMTybZ9TMMIv/WRpSilt+mvQz/mA9lPBi+953ahttaJS QLSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GKZC3Rx6; 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 2-v6si12526971pla.495.2018.08.26.14.23.07; Sun, 26 Aug 2018 14:23:22 -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; dkim=pass header.i=@kernel.org header.s=default header.b=GKZC3Rx6; 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 S1726951AbeH0BFk (ORCPT + 99 others); Sun, 26 Aug 2018 21:05:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:35028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726772AbeH0BFk (ORCPT ); Sun, 26 Aug 2018 21:05:40 -0400 Received: from mail-yw1-f46.google.com (mail-yw1-f46.google.com [209.85.161.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0174A208A1; Sun, 26 Aug 2018 21:21:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535318516; bh=yzQteqtKfqzbr45HAQsnYRVEynVzN2NUiwZA0MTsBUQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GKZC3Rx6a/M+N/+3VsQQa2PqA0BgEq+xUMdZXyMgD3zy63gAgRCSEwAopzacmW5wa f3LanglsBgWIdXHEn5XxUndw8juHZsHYWIbn9t8MLnI6XcKOIsG5LJZnZ56K7bJsZX GHXpwEcPZYWfR3q3JXYxZnPeFuw1LMrwMG7RbUlI= Received: by mail-yw1-f46.google.com with SMTP id n207-v6so4899380ywn.9; Sun, 26 Aug 2018 14:21:55 -0700 (PDT) X-Gm-Message-State: APzg51DahT+on50oEryWnbKaWGoV9YJhYda0B/rD6NmcIXti/6Le7Mau shs03HdchFm293xUm7fYmhCSs6PW3BMrK/sLW5w= X-Received: by 2002:a0d:ec4e:: with SMTP id v75-v6mr5687058ywe.433.1535318515243; Sun, 26 Aug 2018 14:21:55 -0700 (PDT) MIME-Version: 1.0 References: <20180824152513.8336-1-mdf@kernel.org> <20180824152513.8336-2-mdf@kernel.org> In-Reply-To: <20180824152513.8336-2-mdf@kernel.org> From: Alan Tull Date: Sun, 26 Aug 2018 16:21:19 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] fpga: dfl-fme-region: Use platform_get_drvdata() To: Moritz Fischer Cc: Wu Hao , linux-fpga@vger.kernel.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 24, 2018 at 10:26 AM Moritz Fischer wrote: > > 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 Thanks, Alan > --- > 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 >