Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4142958imm; Mon, 20 Aug 2018 10:31:33 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy6E7sIAxpe3bzgLAj/rp1wPXYe9ccJPRYk98lIaCG2sY73sA8thXzypULxwRp/pFeZdLFK X-Received: by 2002:a63:8241:: with SMTP id w62-v6mr5474337pgd.230.1534786293732; Mon, 20 Aug 2018 10:31:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534786293; cv=none; d=google.com; s=arc-20160816; b=epxipU5Z5rcN8sSqR6fKPdmJVY/uk0jcAGvDqTpIqdWjUKdnpmsqVYtumh8aEosVv/ NK8c9/GID30SL73Y6rV+yumu2WEA+HBbiWFhNatF352c0bajG+gyuxrn+hl4W9+sB6S5 jS6ZsoQ5MaJwHaiR/MYhHSWBI8NTR2ZPJuuV164FP7gVvxOXZ3p2d0Wjaandg9co2/VH AT31cmOkWeFuyGtrWFRZO/FXWgE9vwD/fyJ8za3LVagq9kGtf12/+McDHYYhNuF6pvL5 VwTKUoF73OQyH8WDtT18WHmlAjko38HrvlutqSyZx2CkQuBYNa4RRkJ4q7dYQfR2Ojya XOsg== 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=LDi2q6slR2CALVvjK2a7dhG0FcXtkkX1M1my+s3T4MU=; b=oT0gLx6PRTPbXlBi7IJsicahpGeMmSsQsUBa/9Yuli6AalI7wCDbRMtcrirSN5dPqj ehomdERVnV4VHvKe7N9gRZbRwb4x52R0jvdyE4ahnIxP6hBF3ZL+oNsUAxfYJGqC7/SR gAkOxBv6sghtWc5/WOJizvpm7f8EvE6/TVdlirrMx65KpR2Xm2AaWDJ5wlQy/vR0lU0U Nma7nI4txooxdZEhZTP3YiM6VYN4PIs9exVhIo7ybcNpyW15NSxe5LJjl5CZLOJNuI9b b+ORatnTTgFL8c6zYhevPPGPkRe80thtNwZYDI911+JPsEj127wHJNHgMkWr+XG28QVz 0k7w== 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 b129-v6si10414951pfa.12.2018.08.20.10.31.18; Mon, 20 Aug 2018 10:31:33 -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 S1726534AbeHTUnw (ORCPT + 99 others); Mon, 20 Aug 2018 16:43:52 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:37802 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726455AbeHTUnw (ORCPT ); Mon, 20 Aug 2018 16:43:52 -0400 Received: by mail-pf1-f193.google.com with SMTP id a26-v6so7101864pfo.4 for ; Mon, 20 Aug 2018 10:27:22 -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=LDi2q6slR2CALVvjK2a7dhG0FcXtkkX1M1my+s3T4MU=; b=r8dLitdUltk6Nl5J6l42V0wdOUQe/J5xtdyff2yTxZmzTBQTCc+Hjzi3thr0Ehp7mh +Rrc24pgZJ9+7hi/D9SEMUYzKY18o09hAugAI6hMDpNAu11cAGNvhgmZ3zgo93pPtSwN WuYjRtIdcbsinSsYeoOUtVNy4OMpJgDAeLNF7yP8nu8PjzwDi5jeoG7j1oJfDYadfAqP +fa0ysej+C4loNSETC9BIpnJFRmqAiAdylKjL/MZDo46sjj5VxqtZCx5/jjtSnpRNNVw GRNDYvc4NsFpMoHq+KximA633jrm/yyUozUJ3KVcb/S5LdSyCOtdTl1KX/B9Ig68zQKE t2gw== X-Gm-Message-State: AOUpUlF0yy9ftKnE1v1e8IE6umB1oYnJrucqcL8pjxBetd5+8HVTG+QF qi46c8pZJzkpQaaH7IWaic1wrQ== X-Received: by 2002:a63:2f45:: with SMTP id v66-v6mr11350750pgv.91.1534786041679; Mon, 20 Aug 2018 10:27:21 -0700 (PDT) Received: from localhost ([207.114.172.147]) by smtp.gmail.com with ESMTPSA id d19-v6sm459590pgv.61.2018.08.20.10.27.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 20 Aug 2018 10:27:20 -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 v2] fpga: dfl: region: Restory symmetry in probe()/remove() Date: Mon, 20 Aug 2018 10:18:18 -0700 Message-Id: <20180820171818.7710-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 --- Changes from v1: - Still compile after change ... --- 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..11d3c23a8936 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); fpga_region_unregister(region); fpga_mgr_put(region->mgr); -- 2.18.0