Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4176967imm; Mon, 20 Aug 2018 11:06:23 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwlQlkWKsUp8HxkzBpAWt7R5OpSANda/e2GeAb1GAXxmwnbL77BrN+JrBTjKbwX+qHWQeHc X-Received: by 2002:a17:902:64c1:: with SMTP id y1-v6mr17271686pli.85.1534788382977; Mon, 20 Aug 2018 11:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534788382; cv=none; d=google.com; s=arc-20160816; b=bGAvZBg2/6xmVJKjE7lTGmlo7wi1E7NgyYV8Q1FewMYattTMNJO1JMTfXZCF+Tdu6S b5kcm2Fr0MDVOXX9To8fNu5LTZ4aULuVxYdaTq9lxfJLOFZO8TA6VR0c7vaqkvoqGVFk R8sg8pcWPuX6Wvr+IChXbQN6VXXTlBeGIVx2pmIGWWC4/yGuMurd31VSQLIh/QODSBld 2mC6Q7yvUfvKssdboqcmYQnyG75AYHjJLKmYJIjSX1fKK8g7RbG7V2TQ3OAJaNnpDqMc 3e6keGqH34KEkZR627coosuyWWzz50ifK0DPpx3/vWElMZRjCZrLHwPKhYGs7eXYs7DA 9SBQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=83Caa3++Bf8o1p9c+kWLKW6HLk9ukSHIhCYhqX89fow=; b=N+SP+/k6l2k0gdISX1sYLZDuvJBq5v9fo49mpNYnqXEkFXzqbHFNf0kxw616pDFi/8 GwImMZQvL1P6rdlO6ExcjcMieuZnoToGTSSv7LEiQFw+UH1cPsDdoHQj0NY35cyB4k/J 5pAqJ3WNqkrskQMxcTQdyv7BwKMAT1T2sats6+r1gO++OxhqVE4U66Tii7JbPtAB76m1 8wvCV8kx6DwdL6NKDV2wKSRiuVFYTMqSDQR7Ts//UTfyH70KGjujS3GTgW/lijnwBK3a iOSOhnOXU4f7utDwz4IgDuxUtKraBKRZADPTzyz8OsMn9kNougw2FE4IjxFDu8KbY0Ce e3dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vDpSysdr; 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 d26-v6si10214484pgd.32.2018.08.20.11.06.07; Mon, 20 Aug 2018 11:06:22 -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=vDpSysdr; 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 S1726522AbeHTVVj (ORCPT + 99 others); Mon, 20 Aug 2018 17:21:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:42290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726106AbeHTVVj (ORCPT ); Mon, 20 Aug 2018 17:21:39 -0400 Received: from mail-yb0-f171.google.com (mail-yb0-f171.google.com [209.85.213.171]) (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 C395B2173A; Mon, 20 Aug 2018 18:05:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534788300; bh=s50m4qIOmVl3tL/myuUTjQ5nXLnfjr9of9al0dUhJWw=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=vDpSysdrvQGvRjYSRR//92vyZLrwaoTDRqvgC21QJ7p/MN5PLV1GIqukODI3E8D7h CXqIZ+uCqiik5TTo0CYdvPQmnJzKXskesjPw7bnmg57UP44b6ZPBG/3K+sVWG1OaDy 8A33e5axu9ZANi4W1Ftbx3KxE6jRPs54WRRPJ83k= Received: by mail-yb0-f171.google.com with SMTP id d34-v6so4947356yba.3; Mon, 20 Aug 2018 11:05:00 -0700 (PDT) X-Gm-Message-State: AOUpUlHw+WBy8A2+sCa8SlY6YfeZhje5U9A9oBhRhGVAtdUkTJl5iHlh Vz8Um1UQ6/CJOT7ACTOPwYBoEH92uxx0tuVNfPA= X-Received: by 2002:a25:5446:: with SMTP id i67-v6mr9247341ybb.222.1534788300050; Mon, 20 Aug 2018 11:05:00 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:81c4:0:0:0:0:0 with HTTP; Mon, 20 Aug 2018 11:04:19 -0700 (PDT) In-Reply-To: <20180820175425.zoxnbcz3ziutxaq5@derp-derp.local> References: <20180820171818.7710-1-mdf@kernel.org> <20180820175425.zoxnbcz3ziutxaq5@derp-derp.local> From: Alan Tull Date: Mon, 20 Aug 2018 13:04:19 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] fpga: dfl: region: Restory symmetry in probe()/remove() 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 Mon, Aug 20, 2018 at 12:54 PM, Moritz Fischer wrote: > Hi Alan, > > On Mon, Aug 20, 2018 at 12:46:32PM -0500, Alan Tull wrote: >> On Mon, Aug 20, 2018 at 12:18 PM, Moritz Fischer wrote: >> >> Hi Moritz, >> >> > Replace dev_get_drvdata() with platform_get_drvdata() to >> > match the platform_set_drvdata() in the probe function of >> > the platform driver. >> > >> > Fixes commit bb61b9be3e6b ("fpga: dfl: add fpga region platform driver for FME") >> > Signed-off-by: Moritz Fischer >> > --- >> > >> > Changes from v1: >> > - Still compile after change ... >> > >> > --- >> > drivers/fpga/dfl-fme-region.c | 2 +- >> >> Thanks for catching this. of-fpga-region.c does a similar thing and >> needs s/dev_set_drvdata/platform_set_drvdata/ in the probe. Could you >> fix it here too? Actually I should have said something more like s/dev_set_drvdata(dev/platform_set_drvdata(pdev/ > > Yeah, can do in a v3 series ... Will add your Suggested-by: ... Thanks! > > Cheers, > > Moritz