summaryrefslogtreecommitdiff
path: root/drivers/fpga
diff options
context:
space:
mode:
authorMoritz Fischer <mdf@kernel.org>2018-11-12 22:38:34 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-26 22:47:10 +0300
commitb77c98780e682fe780d899b91543769d4cf94585 (patch)
tree801bfbcb6362eae866cf4da7a28662e6a72bf315 /drivers/fpga
parent4d3c5c69191f98c7f7e699ff08d2fd96d7070ddb (diff)
downloadlinux-b77c98780e682fe780d899b91543769d4cf94585.tar.xz
fpga: dfl-fme-region: Use platform_get_drvdata()
Use platform_get_drvdata() in remove() function of the platform driver rather than dev_get_drvdata() to match the platform_set_drvdata in the probe(). Signed-off-by: Moritz Fischer <mdf@kernel.org> Acked-by: Alan Tull <atull@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga')
-rw-r--r--drivers/fpga/dfl-fme-region.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/fpga/dfl-fme-region.c b/drivers/fpga/dfl-fme-region.c
index ec134ec93f08..1eeb42af1012 100644
--- a/drivers/fpga/dfl-fme-region.c
+++ b/drivers/fpga/dfl-fme-region.c
@@ -64,7 +64,7 @@ eprobe_mgr_put:
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);
struct fpga_manager *mgr = region->mgr;
fpga_region_unregister(region);