Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2979532imm; Fri, 24 Aug 2018 08:31:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZiOIuBW/vtEwCXqrsq+obPyz/WCInY4DDaa8fpRsjBIF/67UiN8phqtwy+51PqX4laJfQ+ X-Received: by 2002:a17:902:6946:: with SMTP id k6-v6mr2143623plt.268.1535124661727; Fri, 24 Aug 2018 08:31:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535124661; cv=none; d=google.com; s=arc-20160816; b=zLJxz4sDKiUHcrcd50bCk5YlofzGLXTWiDwenQB7pvb+OFdhJwB9laKM+GsVinosSN aO/MXJLAMKwE/QJafPYuSk4mq89BKN0bNZi02D0YipzgdZM+U12297AONwwq5ZDn1yUp l1ReHrKj/SpZVPa67v0Zy2iXROtNb3R0EogCUYi9EXgIcD3PhgTOyivT46lqQLlmF6EN ANcA3RGX2cumeFlnbVgwrVUBGEZjDvS9rJ1rZUvuxzUB5pfsyzBb1wdHLcMp3ujIP/Xi vE5mpUGtyUPILnjv09w1pfNRe/jTHQM1yRFW1Z8ZWUt/iGzOPAC+hrbvy2s+L1HRl9U5 Q3+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=57dRHTQn427mhHXpuBgiWI88kOyTDzrTdbLvs4H5kZE=; b=cwE4PdkH66X1iBVedex9EVuc021M3crbg0YXCdXtUp/BWVVgjrdM8ixGRrTG2+Smea vQlSAjug+WpkI0HNsMIV2Y8nbtxoEzsxY3jKj4rIoPzmmAsRS87AEn6flQeoNrXrzMTQ ur+JY8fTuWfRM51FUlohsHXRch1DtbKGOf6dHBWhq5v9AicZsKPMIJUAHJzwBQsUtV+K UQvnAguYVTnG3ejnX99tQ7WKSsDsX7slvPT41WGHhUH//qbc0jRD8eXu6Y4sQ+1uOCrU U4YoqB9xeXomRCtDUNSboNYvBBBK8YZnjEQ5AUGSidF9mdqLDKkOINhRcrZ/kW4aEjMi Fzzg== 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; dmarc=fail (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 b5-v6si7857455pfa.116.2018.08.24.08.30.23; Fri, 24 Aug 2018 08:31:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727435AbeHXTBe (ORCPT + 99 others); Fri, 24 Aug 2018 15:01:34 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:35346 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726268AbeHXTBe (ORCPT ); Fri, 24 Aug 2018 15:01:34 -0400 Received: by mail-oi0-f66.google.com with SMTP id m11-v6so15983883oic.2 for ; Fri, 24 Aug 2018 08:26:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=57dRHTQn427mhHXpuBgiWI88kOyTDzrTdbLvs4H5kZE=; b=Ks4tRd+01XM2kbdTyBDpcksB3Bz/AgVV5TsmtyoXjUbu+K/nAghjbwFmSA4diE/5b4 jAn43CuVv9rdelBIeMmKcNJ3nlmjaaqoXBqDv9fGU7j5+pGuYKkZd2YoYDt0mM4jTZv/ ZnsVs6yhgLXC7dmfxIYECE60K7fimPijVmilfNQaaoT1ZNhOYpxo/sdVmIxaw5GSmwI6 xaH8DwinmlCIxUWfdP4gipxfomVT1FVAcKLWAJjIhbOXNE3EC9k7vLxU9yCMBQGXFLRd O/is8SrtQR1PgjC5Ch+B1pHbZ5A5FTujOAUOyvA+KuX6G2v06k5JUYbkaayaQs5LVDl5 cQ5A== X-Gm-Message-State: APzg51A79RFmB7wAPNUig6e9lgBHBxIO9EsicT1W2U9vKyptWtA8DQlL z8fhPTRkfDgfiTyflRbpsxB8lQ== X-Received: by 2002:aca:5b88:: with SMTP id p130-v6mr1877963oib.247.1535124386960; Fri, 24 Aug 2018 08:26:26 -0700 (PDT) Received: from localhost ([130.164.62.204]) by smtp.gmail.com with ESMTPSA id b125-v6sm6626121oia.38.2018.08.24.08.26.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Aug 2018 08:26:26 -0700 (PDT) From: Moritz Fischer To: hao.wu@intel.com, atull@kernel.org Cc: linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, Moritz Fischer Subject: [PATCH 1/2] fpga: of-fpga-region: Use platform_set_drvdata Date: Fri, 24 Aug 2018 08:25:12 -0700 Message-Id: <20180824152513.8336-1-mdf@kernel.org> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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