Skip to content

Commit 71d8e94

Browse files
committed
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>
1 parent 998c1de commit 71d8e94

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/fpga/altera-pr-ip-core-plat.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ static int alt_pr_platform_remove(struct platform_device *pdev)
3232
{
3333
struct device *dev = &pdev->dev;
3434

35-
return alt_pr_unregister(dev);
35+
alt_pr_unregister(dev);
36+
37+
return 0;
3638
}
3739

3840
static const struct of_device_id alt_pr_of_match[] = {

‎drivers/fpga/altera-pr-ip-core.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,13 @@ int alt_pr_register(struct device *dev, void __iomem *reg_base)
201201
}
202202
EXPORT_SYMBOL_GPL(alt_pr_register);
203203

204-
int alt_pr_unregister(struct device *dev)
204+
void alt_pr_unregister(struct device *dev)
205205
{
206206
struct fpga_manager *mgr = dev_get_drvdata(dev);
207207

208208
dev_dbg(dev, "%s\n", __func__);
209209

210210
fpga_mgr_unregister(mgr);
211-
212-
return 0;
213211
}
214212
EXPORT_SYMBOL_GPL(alt_pr_unregister);
215213

‎include/linux/fpga/altera-pr-ip-core.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
#include <linux/io.h>
1414

1515
int alt_pr_register(struct device *dev, void __iomem *reg_base);
16-
int alt_pr_unregister(struct device *dev);
16+
void alt_pr_unregister(struct device *dev);
1717

1818
#endif /* _ALT_PR_IP_CORE_H */

0 commit comments

Comments
 (0)