summaryrefslogtreecommitdiff
path: root/drivers/fpga/altera-pr-ip-core-plat.c
diff options
context:
space:
mode:
authorMoritz Fischer <mdf@kernel.org>2019-06-26 17:33:09 -0700
committerMoritz Fischer <mdf@kernel.org>2019-07-24 14:11:52 -0700
commit71d8e94dabee7fceac473d87445a03e848469a71 (patch)
treec5fea52f23c73c24e4e7aee8975a9ef3c5f43287 /drivers/fpga/altera-pr-ip-core-plat.c
parent998c1de56dac7ff6bad4f810259cc25c7d6d2843 (diff)
fpga: altera-pr-ip: Make alt_pr_unregister function void
Make alt_pr_unregister function void, since it always returns 0, and nothing would act on the value anyways. Signed-off-by: Moritz Fischer <mdf@kernel.org>
Diffstat (limited to 'drivers/fpga/altera-pr-ip-core-plat.c')
-rw-r--r--drivers/fpga/altera-pr-ip-core-plat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/fpga/altera-pr-ip-core-plat.c b/drivers/fpga/altera-pr-ip-core-plat.c
index b293d83143f1..99b9cc0e70f0 100644
--- a/drivers/fpga/altera-pr-ip-core-plat.c
+++ b/drivers/fpga/altera-pr-ip-core-plat.c
@@ -32,7 +32,9 @@ static int alt_pr_platform_remove(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
- return alt_pr_unregister(dev);
+ alt_pr_unregister(dev);
+
+ return 0;
}
static const struct of_device_id alt_pr_of_match[] = {