diff options
author | Moritz Fischer <mdf@kernel.org> | 2018-11-12 13:38:34 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-11-26 20:47:10 +0100 |
commit | b77c98780e682fe780d899b91543769d4cf94585 (patch) | |
tree | 801bfbcb6362eae866cf4da7a28662e6a72bf315 /drivers/fpga | |
parent | 4d3c5c69191f98c7f7e699ff08d2fd96d7070ddb (diff) | |
download | linux-b77c98780e682fe780d899b91543769d4cf94585.tar.gz linux-b77c98780e682fe780d899b91543769d4cf94585.tar.bz2 linux-b77c98780e682fe780d899b91543769d4cf94585.zip |
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.c | 2 |
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); |