Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5556245imm; Wed, 12 Sep 2018 07:44:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZIoaTSaEGYMCMllU/ONWJ88WPYAHH9pYvJky/Qlzwg84YVQcnBugP+bflWssQrKPGHfk9v X-Received: by 2002:a17:902:740a:: with SMTP id g10-v6mr2763008pll.22.1536763456631; Wed, 12 Sep 2018 07:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536763456; cv=none; d=google.com; s=arc-20160816; b=eRwJeFcYqwvo8ehE/rBNwbVgC0S73w40HK1rB5y4H/gdTe858BiYNxzgxr/jLz2G6N 01iWeSFaXNnXTZlgR6MOigqcx3YrfJV3zURWHzmDmaKG1tB93j8AxAsR7fqVrIathfSn xPkuD1y/N7Ds0uFUJ01viNNIn1kexCnKjYqd+835euNRWdoe2x3aMJ9R6RrGtc793NMM B5ma2XOCxFtNfeekOsVFCvuUHis1ba3/do8CAPVr+5Fdqdd4a/FgE25g0YswV3/66Vt/ 8Ib1lMHkFQdJIMBX0KTpXriL97oI8P6L4izW+lorlqy4gUP/hWugoPERjDbQlle9QiaO rxTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=b4ImlsvcS3hhuHg4C9uFlZX9SJ16p12oD4mTd7nJLF0=; b=CKCz63NE35dDXpsDDrQMZWj88jrwb7UG/JMw7PcG3xemqoPpwAbKLl16JDXa/QVwq6 v5ui+60CheYjDX26Vm+NB+sNwfqnHE3uHug2HkmL6Yt0ovWZ/NxwOoNM2aoA88nGapU6 9W/Wx1r/LjSI+GIdm8gg8Y7Sb8fbbuKUwXgoXy96FCyRacn+NRh38S5kYssCDwusZyzU IWDcNDcaO8DuRVt8a82WkG5CxBgqaRJmxM/ycuy563zHROJ2MeqYWkmw42uU6vlGMrjx Iqgvy4hdsbpW7/zujtSrVd78lhrjYjUvboBiXLz5o6RfQmFurmxs5nXbrVzGLNqcFBVz JLwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bQ5fSsZr; 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 a8-v6si1487884pgm.201.2018.09.12.07.43.50; Wed, 12 Sep 2018 07:44:16 -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=bQ5fSsZr; 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 S1728215AbeILTsZ (ORCPT + 99 others); Wed, 12 Sep 2018 15:48:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:60522 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728132AbeILTsY (ORCPT ); Wed, 12 Sep 2018 15:48:24 -0400 Received: from localhost.localdomain (unknown [192.55.54.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CBF4520866; Wed, 12 Sep 2018 14:43:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536763415; bh=yFDq3gNJ0hc98aJKWqK6WwpK5PXmEqtuFNi9c/xujoo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bQ5fSsZr1H87BJlA4Wr6lqoIiip4NYOhIrOfZ8iRwc/yR0NtrQBEX6IDIe6JXIKx5 ujlXrS1UjkCEjbZJIHSuhUI8VSDkg87EnoCZ8AwY78Q0ObucyfPYQ99Loe8OzjxwO3 f9Sl6qTdHyk9WuuiBEb9k5PMID84MRlNjM0MJuNA= From: Alan Tull To: Greg Kroah-Hartman Cc: Moritz Fischer , Alan Tull , linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org Subject: [PATCH 4/5] fpga: of-fpga-region: Use platform_set_drvdata Date: Wed, 12 Sep 2018 09:43:26 -0500 Message-Id: <20180912144327.3130-5-atull@kernel.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180912144327.3130-1-atull@kernel.org> References: <20180912144327.3130-1-atull@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); dev_info(dev, "FPGA Region probed\n"); -- 2.7.4