Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1339495imm; Fri, 17 Aug 2018 16:51:05 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzucJZHisEWibtWlnk/tBrpYl/uItUsCbSypg6RGZWeK8nLe2J6u960FBW0djZI/GH2CaJy X-Received: by 2002:a63:d401:: with SMTP id a1-v6mr9367889pgh.414.1534549865718; Fri, 17 Aug 2018 16:51:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534549865; cv=none; d=google.com; s=arc-20160816; b=XbNPTorWRAWfZmW5AquxWNAljlvsEgFh/Inpz8/dJacAWcpm0OU8bBDS/odAsUPVnC FjL3hZt2Zr7fKPtLs2hNYaCpwy3Wwj3dZWp5h5Mouvs2FfHNmIs1iYPhuDAc7AkzZ+ez WrxLQ/z+y5lidjYP+r4KQiGF+DnaGjFyjjAJom4aoeddIWJQOwzl0LP1V6Pf6WRXhi0Q McEuFx9Erm9+0mgxjE8rW4X+NRECtPke0mO98X3E5qsemQcn7r+0JP+r+1/BgCLtfLqk z12P8v8Mv7smmKkVOCRVFpBoNyKFHTkPOdiR5/QiUqkYBYtyRpcPcQvzri4E9LXBtXjB yZMg== 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=ZVwzXGvzDc6xEYFuStk/aq+CdIfDi9Eim5zmoodMc7U=; b=IcvW2uYQ2GKVCbftRK2FQ58jwwwvxBhUb/fQkEgX4Ssm9vV0B+8I9PpJ3jLRgDaTbz TVfbvLgeDZ8F4mnc0qLVFaTqd5jXQvuvcYyCHe7W9Ugg6K+KQsf2+bRht41zkI7JVcH+ 3G6Ab7MpM3COLAjWTrcWMqbjKhjacELOPOazv9TrIsstyET97ip3s5qv1Wz0+gbiBprr CbP9UgJCf5iK4HwnAdDWyWgAJRypTWG8zNdR+IB7bVs1x8QlYcFEgS6PlGFwPoNR8zhR OgaztiY46xC7vGtyKaG6nyADMVmOY8p3sSmS4kKx1TOk7TafqGLoK2kufKtPUGbm/Pd0 B6Yg== 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 v3-v6si3326919plo.208.2018.08.17.16.50.51; Fri, 17 Aug 2018 16:51:05 -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 S1726368AbeHRCzJ (ORCPT + 99 others); Fri, 17 Aug 2018 22:55:09 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:33124 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbeHRCzJ (ORCPT ); Fri, 17 Aug 2018 22:55:09 -0400 Received: by mail-pg1-f195.google.com with SMTP id r64-v6so3044294pgr.0 for ; Fri, 17 Aug 2018 16:49:44 -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=ZVwzXGvzDc6xEYFuStk/aq+CdIfDi9Eim5zmoodMc7U=; b=f5V46P7E+eZEL1tpMq0BIGB1yULI067RTC7nO3P85XK010zLwashH6ogrGJd2Xitfc tejrqcI/ce1iEtYx74/X+ASu5Ew28YtItSvzJ7aqSvtCAZhB8HR5pIqunzat6kPju4gd E6u5wyT1apqiaSdz4Fs6J3NNIuzoIdPcdE1rHFf5IqVImOevwl/za+e+qI4P6NmzqSLX qXTyrIxnEO2AZj0Dkp580fPcHOwuZKhQRJbzGherAHqKhmuVxWo1GYNhMcRLdS80mcXS bIQoGJsdDkdWAcvJP2Ql8jzGe5Tw4uj7JQ6t9bW9IgGTM9DR9Lz8cZV59+Pd64aPxauV j6/Q== X-Gm-Message-State: AOUpUlF11JxYzMsPjmCOmKtsUfBWzcollZVx/63hpoNmh5kYRpzvzsRH BeEVWsgRKwZyFo93HWNWExgD9Q== X-Received: by 2002:a63:195e:: with SMTP id 30-v6mr34224095pgz.192.1534549783643; Fri, 17 Aug 2018 16:49:43 -0700 (PDT) Received: from localhost ([207.114.172.147]) by smtp.gmail.com with ESMTPSA id p66-v6sm4817445pfd.65.2018.08.17.16.49.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 17 Aug 2018 16:49:42 -0700 (PDT) From: Moritz Fischer To: hao.wu@intel.com Cc: atull@kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, Moritz Fischer Subject: [PATCH] fpga: dfl: region: Restory symmetry in probe()/remove() Date: Fri, 17 Aug 2018 16:40:49 -0700 Message-Id: <20180817234049.9624-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 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 --- drivers/fpga/dfl-fme-region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/fpga/dfl-fme-region.c b/drivers/fpga/dfl-fme-region.c index 0b7e19c27c6d..ce7ebe4b3212 100644 --- a/drivers/fpga/dfl-fme-region.c +++ b/drivers/fpga/dfl-fme-region.c @@ -65,7 +65,7 @@ static int fme_region_probe(struct platform_device *pdev) static int fme_region_remove(struct platform_device *pdev) { - struct fpga_region *region = dev_get_drvdata(&pdev->dev); + struct fpga_region *region = platform_get_drvdata(&pdev->dev); fpga_region_unregister(region); fpga_mgr_put(region->mgr); -- 2.18.0