aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nd.h
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-02-12 18:10:43 +0100
committerDan Williams <dan.j.williams@intel.com>2021-02-16 19:35:29 -0800
commit1f975074634a63f014e2b7e76852ee6d6005a91d (patch)
tree8fa1e0b3eacfb3299bb7384a191067114cffd155 /include/linux/nd.h
parentlibnvdimm/dimm: Simplify nvdimm_remove() (diff)
downloadlinux-dev-1f975074634a63f014e2b7e76852ee6d6005a91d.tar.xz
linux-dev-1f975074634a63f014e2b7e76852ee6d6005a91d.zip
libnvdimm: Make remove callback return void
All drivers return 0 in their remove callback and the driver core ignores the return value of nvdimm_bus_remove() anyhow. So simplify by changing the driver remove callback to return void and return 0 unconditionally to the upper layer. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20210212171043.2136580-2-u.kleine-koenig@pengutronix.de Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/nd.h')
-rw-r--r--include/linux/nd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nd.h b/include/linux/nd.h
index 55c735997805..cec526c8043d 100644
--- a/include/linux/nd.h
+++ b/include/linux/nd.h
@@ -26,7 +26,7 @@ struct nd_device_driver {
struct device_driver drv;
unsigned long type;
int (*probe)(struct device *dev);
- int (*remove)(struct device *dev);
+ void (*remove)(struct device *dev);
void (*shutdown)(struct device *dev);
void (*notify)(struct device *dev, enum nvdimm_event event);
};