Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5238142imm; Sun, 26 Aug 2018 14:22:36 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYom6HaAhxcpXfmpva6E9V7gvQiPGqUYPuNC1eEn55ktzZnU9ny43YfchX8DxaL9UTViPK8 X-Received: by 2002:a63:81c3:: with SMTP id t186-v6mr9707533pgd.285.1535318556715; Sun, 26 Aug 2018 14:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535318556; cv=none; d=google.com; s=arc-20160816; b=zsIZ4VU4V3+BCA74A6V7Y6PyhT8IGPOLW6OzEvRQd5JWtWPZBBvxG8WnrqyEoR+Xf9 p+w0DU+86D45CGFue5cCwSNKXsVkxjD5yhSTQ3XMSEN5Hl0fdUGgtMKkxWarWeRczxiC N5pjaNvZJZRraU+FOZDsr24TiGF59xkwKvQ3X9jQLeVcnv30jBR7AtEeLUHpmMw2Zqfn 4ywf1mVTk+z+lnVHyv5cbU1mOqWV/m43nLsTrMD56+jAeZVwFd6LrTzr5UEWSokRiqDu VIsFtIP4V1l+ZjpGhUTBnDD/70vNZF4PUeJjoGk+Yt8+1Wlp3BaGIrlxLMARd2nmLD1A yEDA== 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=9KcLbI370ITBoqJaLc8PeF8wNxxqWCsvxl1syxyv8oU=; b=BsswP5hlWtazAn1ccop2jAzUkFETAplueV7GZJvRoTEntBe8ETpvHd4sSKJzOXe2NI qDUvygR00/RJ1OnJl9j3NxnbNZewG+2KgU+dAS8899wb5pRGjXcTjwRXU12Mr//lqrb4 8GZ8GF4tooYJ7b2/2CWs1qkvmF5n9LFn0Hesbd7YUMLOP2cKlTzg5GYEtLTGlFmH1CAI gmaogvEExfoghftZabmSs4L6sa5pHHzqXM8yka3lvBBy6HL51YTz0NKUwYD8J9TTkXFP hcl5V/jUJwHxsvW1dhRYEMv21PVmC9kTYlIb/EyDROJxWC4qxd4dfrfT4bvJR/us76Ki h31g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lGxtauAh; 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 t71-v6si12800761pfi.221.2018.08.26.14.22.21; Sun, 26 Aug 2018 14:22:36 -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=lGxtauAh; 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 S1726851AbeH0BFB (ORCPT + 99 others); Sun, 26 Aug 2018 21:05:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:34712 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726751AbeH0BFA (ORCPT ); Sun, 26 Aug 2018 21:05:00 -0400 Received: from mail-yw1-f51.google.com (mail-yw1-f51.google.com [209.85.161.51]) (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 933C12170B; Sun, 26 Aug 2018 21:21:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1535318476; bh=XOjJ8fzzc00QzisDodiodc3djXxGvuqWu2Xnn9q2xSo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lGxtauAh6bqDkcvcAROQyoHjP/d/YH1hYJRv2c1PaBtSXdFuMMB6i45TnrTUHCz10 Rlazpx70QnfuI23XlWFcKTP/sNIFZqlLqcR7KGsbgMDwu9q8+llYEpt0uhICWiFBwR k82XRnCeGsYPzWopEhnwRO6ZXKTgnxFdcSzpf8HA= Received: by mail-yw1-f51.google.com with SMTP id p206-v6so4895591ywg.12; Sun, 26 Aug 2018 14:21:16 -0700 (PDT) X-Gm-Message-State: APzg51CzgXxE4kY+BOc1My2bC5ZWSoob37evJqdY6japDJeY9h8m6cI2 5WiRtcW/rHscUJnOCkoV3/nzkJxfHNwoctvsuhc= X-Received: by 2002:a81:a097:: with SMTP id x145-v6mr5612509ywg.474.1535318475836; Sun, 26 Aug 2018 14:21:15 -0700 (PDT) MIME-Version: 1.0 References: <20180824152513.8336-1-mdf@kernel.org> In-Reply-To: <20180824152513.8336-1-mdf@kernel.org> From: Alan Tull Date: Sun, 26 Aug 2018 16:20:39 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] fpga: of-fpga-region: Use platform_set_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: Hi Moritz, Looks good. Thanks for the patches! > > Use platform_set_drvdata rather than dev_set_drvdata > to match the platform_get_drvdata in the _remove() > function of the platform driver. > > Signed-off-by: Moritz Fischer Acked-by: Alan Tull > --- > drivers/fpga/of-fpga-region.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/fpga/of-fpga-region.c b/drivers/fpga/of-fpga-region.c > index 35fabb8083fb..8c6120e30930 100644 > --- a/drivers/fpga/of-fpga-region.c > +++ b/drivers/fpga/of-fpga-region.c > @@ -421,7 +421,7 @@ static int of_fpga_region_probe(struct platform_device *pdev) > goto eprobe_free; > > of_platform_populate(np, fpga_region_of_match, NULL, ®ion->dev); > - dev_set_drvdata(dev, region); > + platform_set_drvdata(pdev, region); > > dev_info(dev, "FPGA Region probed\n"); > > -- > 2.18.0 >