Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4475323imu; Mon, 12 Nov 2018 11:39:27 -0800 (PST) X-Google-Smtp-Source: AJdET5ex4iFLBdbA/bvK7IGcq3B+rlxD5U99tdi+1HY3EjnYxEZIgC0v5WHmy/ZEaJscv77YKKyU X-Received: by 2002:a17:902:162:: with SMTP id 89-v6mr2101431plb.293.1542051566990; Mon, 12 Nov 2018 11:39:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542051566; cv=none; d=google.com; s=arc-20160816; b=qtJ9qKVWc8hkah1Ue0xy5kYY3Vqy1RW8NvwXdBktDPPoRSkoPDv1jXDsKbuZtLmeEU CGA2vpKjuT46gzSNiBMee7B8JgUUh5WAUVtl1A5NEcsFAbQUYetYcFYI2StKs442anFo 5LfTnCU5BcpwbewV072wFP9lDiO1mnVaJ573wZgS11KKSVr1et1hDIphpUV7DtkNrIi8 2/pO8cmjnqibJfvSQ/c4y7mf3a1hA8zKZLmkTbTAL6930NwFdk4Ap6xVBQU/B5Vf2kWy xdwTGMMqQ0oHpxesc+CyLf84BW8xW/TCuxxDV4LesbqdkRVdAmVn+TdzpaAQlfK4Huzg yoSw== 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=3mGI7kCUoeu5pDXIrt9xdi8nsHbWHRs6IJsi5pUVjsE=; b=Q9jv2dWe6ZU1IK6IwJuDPc9bBZBRvVNOdpLlj5HMokh+k18WSk5xn6w/5mtgSi41EF KHMo6YlnI6kaSH+1g7Eoqba3mw482l2oYbjIhijQH3MkHr9l8ArgJjAwHCC2knD+9FTe A6E7sWVXOH28v28OAyQU9Z/NkGQ6nb3j1VkxnORFx4m+4OjUKBQ7g3C18tEyoDNnQvy9 SeOdKJcEO07z9RgLvBrdgdXKzceETqCcRueXyODDc8DuKCgls2Ov4btjweI46uti21GX arST3moFakiEon4hat3HoKSK9RB+T2nfu8o3gwcHnn4QzdqHkU5nm84c1QFtl1MyVyre k7sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PZx3yksl; 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 206si16736213pga.240.2018.11.12.11.39.11; Mon, 12 Nov 2018 11:39:26 -0800 (PST) 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=PZx3yksl; 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 S1727535AbeKMFdV (ORCPT + 99 others); Tue, 13 Nov 2018 00:33:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:33438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725749AbeKMFdU (ORCPT ); Tue, 13 Nov 2018 00:33:20 -0500 Received: from localhost.localdomain (user-0ccsrjt.cable.mindspring.com [24.206.110.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 19E8C22507; Mon, 12 Nov 2018 19:38:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542051521; bh=Yd1MKvAWLBm0iVvwdMldqrwFUSswW2kPvTjV1ShiIvw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PZx3ykslzwR0sS/QwRuEFfr6XgNC40Qew/e92iCBDIylVkbvL1c4B0mFY8hDhqL+Z eoxsZk0peAd4hu2MbC7AOd5LFV1jFWCvwAGMJz8iHEF3mbrtjVWlhgLJtfikk4lad6 q6voPFqcE6XSIkb+3dRUnq+7yoR8cUE7JZoUYcNM= From: Alan Tull To: Greg Kroah-Hartman Cc: Moritz Fischer , Alan Tull , linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org Subject: [RESEND 1/2] fpga: of-fpga-region: Use platform_set_drvdata Date: Mon, 12 Nov 2018 13:38:33 -0600 Message-Id: <1542051514-5205-2-git-send-email-atull@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1542051514-5205-1-git-send-email-atull@kernel.org> References: <1542051514-5205-1-git-send-email-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 122286f..75f64ab 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_mgr_put; 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