Commit 71d8e94d authored by Moritz Fischer's avatar Moritz Fischer

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: default avatarMoritz Fischer <mdf@kernel.org>
parent 998c1de5
...@@ -32,7 +32,9 @@ static int alt_pr_platform_remove(struct platform_device *pdev) ...@@ -32,7 +32,9 @@ static int alt_pr_platform_remove(struct platform_device *pdev)
{ {
struct device *dev = &pdev->dev; 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[] = { static const struct of_device_id alt_pr_of_match[] = {
......
...@@ -201,15 +201,13 @@ int alt_pr_register(struct device *dev, void __iomem *reg_base) ...@@ -201,15 +201,13 @@ int alt_pr_register(struct device *dev, void __iomem *reg_base)
} }
EXPORT_SYMBOL_GPL(alt_pr_register); 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); struct fpga_manager *mgr = dev_get_drvdata(dev);
dev_dbg(dev, "%s\n", __func__); dev_dbg(dev, "%s\n", __func__);
fpga_mgr_unregister(mgr); fpga_mgr_unregister(mgr);
return 0;
} }
EXPORT_SYMBOL_GPL(alt_pr_unregister); EXPORT_SYMBOL_GPL(alt_pr_unregister);
......
...@@ -13,6 +13,6 @@ ...@@ -13,6 +13,6 @@
#include <linux/io.h> #include <linux/io.h>
int alt_pr_register(struct device *dev, void __iomem *reg_base); int alt_pr_register(struct device *dev, void __iomem *reg_base);
int alt_pr_unregister(struct device *dev); void alt_pr_unregister(struct device *dev);
#endif /* _ALT_PR_IP_CORE_H */ #endif /* _ALT_PR_IP_CORE_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment