Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2968350imm; Sun, 30 Sep 2018 08:50:58 -0700 (PDT) X-Google-Smtp-Source: ACcGV61x1FQ7n7BkGOXIgboyWRVdmLvVbTQeGdmpWgEIOKaIoyOK05ylpZMfmp8x+DrWxCImFmRL X-Received: by 2002:a17:902:3225:: with SMTP id y34-v6mr7929926plb.330.1538322658601; Sun, 30 Sep 2018 08:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538322658; cv=none; d=google.com; s=arc-20160816; b=SFXWTr5+BsG0yRZL/wcKWkYhhslmnMpMJIpLapACX/bhFXsOv9IMb+Zv5PxB151XIT 6v7J2KzITP7CuJP/kUqJYKEI6P0el4CPpT/jzKQrRvWUuY8Yqlg2REovdwN6BwLNcigX Msd2kdULiNBBRp15tBCRe3I0z1w8bff4XvrboNlEwcz29krQR1gCfsoyVznKjnp0eeO2 MdidNxgXjj40BB7Ic1L37F8s7gQwL7ST0lEAkN14HxlQMJ4sRFBHKjWpObEoHL6vyuS7 Rc75mVOn1au/3bsYgKX/aY0OZHMg2mD5XVhEwhzssemYb7aIbBzCxeqAy4cL0c0eRqyZ HSiA== 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=MEZB5UkPeN5ga8YjXnU32TH1BCHh6YCmpk3NaTeQXeM=; b=vOm8171zwovXL9HldZFE2iRepMzOhrtpEbzrEbrtsRbEVKknOh0QZGBodrwcX/224s ktRXIGBFsZR9pIS+3oKyNuUkfBKPFVf/uTgWRINHLhoGtlDfE1DV4efDsreAFhIhwK3G 8oB8XN4WjmNq/Les2YnTIb+AbhthudzzEyx3ghV4zF1D4KklFuYgjYpFxFS7sNmSF7HZ Ugl8AK/fDdDpatY749HBPGiY8sDio0zzsImj5R7jxvjGjU/FBg9hHZWOC5ygCA3MkFML R20oX60j1zMk58lZcGiomUgVtQEhxNpUFhZHOxVlZiXIfem9nDluxG/sSLNg3B9exdDn hvxA== 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 k6-v6si10379726pls.174.2018.09.30.08.50.43; Sun, 30 Sep 2018 08:50:58 -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 S1728593AbeI3WWz (ORCPT + 99 others); Sun, 30 Sep 2018 18:22:55 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:55136 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727504AbeI3WWz (ORCPT ); Sun, 30 Sep 2018 18:22:55 -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 F1283E32; Sun, 30 Sep 2018 15:49:22 +0000 (UTC) Date: Sun, 30 Sep 2018 08:49:21 -0700 From: Greg Kroah-Hartman To: Alan Tull Cc: Moritz Fischer , linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org Subject: Re: [PATCH 4/5] fpga: of-fpga-region: Use platform_set_drvdata Message-ID: <20180930154921.GB13200@kroah.com> References: <20180912144327.3130-1-atull@kernel.org> <20180912144327.3130-5-atull@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180912144327.3130-5-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:26AM -0500, Alan Tull wrote: > From: Moritz Fischer > > 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 052a134..d6a70e4 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); Again, not really a bugfix :)