Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4159307imm; Mon, 20 Aug 2018 10:48:47 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxiJul5Abd84B8AJsosjvA1iMpKn5QpTUGHlBCjtKz05LmBqcgyWNgMORjM/RPoZJFJrfxU X-Received: by 2002:a63:b30b:: with SMTP id i11-v6mr3006726pgf.337.1534787327050; Mon, 20 Aug 2018 10:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534787327; cv=none; d=google.com; s=arc-20160816; b=0lJ0zlPgsYRN3k5eoYBSFXohLt/Cyou4f3beQZnzDZVy6P9A0lOYcB/GwGBuuXXdwi 4Sp4oZ7YBfZIKf1rKGEigLtyoVYg2ER6KG3rvvsIWlVo6JWfqmGfUX1zM2YvisVPF/ph KcTmCmXky707UoM0yBJ0Bpeg3Wi0iqqdgVK5P0btrJrIboRiHBbWl8H4eC+4KtKklrZQ sn6/o2mnsNY76CqBnL0xtXr+UI2QexEH1vKRaPxDHqXsUKiR40oeFo8Y0I7gYgdpEb2s rlZEjePI4AKhtSVvi/yhVb6M84y5aBlTMX/kiZpL3ijLBh5s3EsQFimwwfUBZAd2QTJV GElQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=EqkmgwinE1LQdH8+CVqTZMKaoStODC3oSuH1roUw7uM=; b=fjK443Dw83k1I4hTakLJeUw6f2TTKbZN0fDa2xCa5mVEkEenTW26OaPfGwyiz4AUsv tMr+BIE+Pou70B45EMMlOFAeqsIFwWkOUk6lkIjf4ExHqyvDgVndg3iInq0Jcg3n3+vE hpzoqXDG5Y1cZk7vRmDRRMOMI9jzpdGB0+AuMZDiLYiu75JYBUrn+0jaOZJ36QbrIxKm 6+iIessOvKkxI9dsW6pTkMCbG8+WLInZw33FwLBxWdLolLv4qU2H6pdDSo/1cMve4Aok FTBDx4xr0VVyfZTCJyIm+LLtZ7jotn4DXC9kaB05evFn24kQFRBRVwBV2euVkEk9yLd3 N9hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tV0V4iAt; 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 u76-v6si11242408pfj.58.2018.08.20.10.48.32; Mon, 20 Aug 2018 10:48:47 -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=tV0V4iAt; 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 S1726522AbeHTVDt (ORCPT + 99 others); Mon, 20 Aug 2018 17:03:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:37240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726089AbeHTVDs (ORCPT ); Mon, 20 Aug 2018 17:03:48 -0400 Received: from mail-yb0-f172.google.com (mail-yb0-f172.google.com [209.85.213.172]) (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 D0AA521473; Mon, 20 Aug 2018 17:47:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534787234; bh=aY2su6ecetACGrhnTTL3bQqpoRmzHKZDkLxWMxFX1Yg=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=tV0V4iAt9LdpQ1puz2oa+LgKcKY2zK4sm7vtOGIDZ26d6ihcnGNfO+tac4fpiocpi bmp0q+6mdqzB6Y7QCAWNIHSULYC5xxghZUTViQfSwUd2Qoudh3Yq8vPSK/w+DPVbKC KjhovkOXJm6Rw3lKnU3n/NW41r4/BbIecuLIKVbM= Received: by mail-yb0-f172.google.com with SMTP id f4-v6so4925049ybp.7; Mon, 20 Aug 2018 10:47:13 -0700 (PDT) X-Gm-Message-State: AOUpUlHEttZ9E/nMJQ0EpkvMbeIljzDiOfSUsxm6VJeBiWuJhL1Jv0Lj Gx5WLqMTPsbEGuZkWjmUNSaURquilkxkSnKGGcE= X-Received: by 2002:a25:db83:: with SMTP id g125-v6mr6373470ybf.412.1534787233066; Mon, 20 Aug 2018 10:47:13 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:81c4:0:0:0:0:0 with HTTP; Mon, 20 Aug 2018 10:46:32 -0700 (PDT) In-Reply-To: <20180820171818.7710-1-mdf@kernel.org> References: <20180820171818.7710-1-mdf@kernel.org> From: Alan Tull Date: Mon, 20 Aug 2018 12:46:32 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] fpga: dfl: region: Restory symmetry in probe()/remove() 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 Mon, Aug 20, 2018 at 12:18 PM, Moritz Fischer wrote: Hi Moritz, > Replace dev_get_drvdata() with platform_get_drvdata() to > match the platform_set_drvdata() in the probe function of > the platform driver. > > Fixes commit bb61b9be3e6b ("fpga: dfl: add fpga region platform driver for FME") > Signed-off-by: Moritz Fischer > --- > > Changes from v1: > - Still compile after change ... > > --- > drivers/fpga/dfl-fme-region.c | 2 +- Thanks for catching this. of-fpga-region.c does a similar thing and needs s/dev_set_drvdata/platform_set_drvdata/ in the probe. Could you fix it here too? Alan > 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 >