diff options
author | Moritz Fischer <mdf@kernel.org> | 2019-06-27 03:33:09 +0300 |
---|---|---|
committer | Moritz Fischer <mdf@kernel.org> | 2019-07-25 00:11:52 +0300 |
commit | 71d8e94dabee7fceac473d87445a03e848469a71 (patch) | |
tree | c5fea52f23c73c24e4e7aee8975a9ef3c5f43287 /drivers/fpga/altera-pr-ip-core.c | |
parent | 998c1de56dac7ff6bad4f810259cc25c7d6d2843 (diff) | |
download | linux-71d8e94dabee7fceac473d87445a03e848469a71.tar.xz |
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.c')
-rw-r--r-- | drivers/fpga/altera-pr-ip-core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/fpga/altera-pr-ip-core.c b/drivers/fpga/altera-pr-ip-core.c index a7a3bf0b5202..2cf25fd5e897 100644 --- a/drivers/fpga/altera-pr-ip-core.c +++ b/drivers/fpga/altera-pr-ip-core.c @@ -201,15 +201,13 @@ int alt_pr_register(struct device *dev, void __iomem *reg_base) } EXPORT_SYMBOL_GPL(alt_pr_register); -int alt_pr_unregister(struct device *dev) +void alt_pr_unregister(struct device *dev) { struct fpga_manager *mgr = dev_get_drvdata(dev); dev_dbg(dev, "%s\n", __func__); fpga_mgr_unregister(mgr); - - return 0; } EXPORT_SYMBOL_GPL(alt_pr_unregister); |