aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-06-03 23:07:45 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2022-06-09 15:06:13 +0200
commit0c90466a7985d39355f743e9cd2139da3e86c4d8 (patch)
tree3680ded094a37b5e792e1e87d18ccd77a3af774b /include/linux/mtd
parentmtdchar: use kvmalloc() for potentially large allocations (diff)
downloadlinux-dev-0c90466a7985d39355f743e9cd2139da3e86c4d8.tar.xz
linux-dev-0c90466a7985d39355f743e9cd2139da3e86c4d8.zip
mtd: hyperbus: Make hyperbus_unregister_device() return void
The only thing that could theoretically fail in that function is mtd_device_unregister(). However it's not supposed to fail and when used correctly it doesn't. So wail loudly if it does anyhow. This matches how other drivers (e.g. nand/raw/nandsim.c) use mtd_device_unregister(). This is a preparation for making platform remove callbacks return void. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20220603210758.148493-2-u.kleine-koenig@pengutronix.de
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/hyperbus.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/mtd/hyperbus.h b/include/linux/mtd/hyperbus.h
index 0ce612428aea..bb6b7121a542 100644
--- a/include/linux/mtd/hyperbus.h
+++ b/include/linux/mtd/hyperbus.h
@@ -89,9 +89,7 @@ int hyperbus_register_device(struct hyperbus_device *hbdev);
/**
* hyperbus_unregister_device - deregister HyperBus slave memory device
* @hbdev: hyperbus_device to be unregistered
- *
- * Return: 0 for success, others for failure.
*/
-int hyperbus_unregister_device(struct hyperbus_device *hbdev);
+void hyperbus_unregister_device(struct hyperbus_device *hbdev);
#endif /* __LINUX_MTD_HYPERBUS_H__ */