aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dax/device.c
diff options
context:
space:
mode:
authorUwe Kleine-König <[email protected]>2021-02-05 22:28:41 +0000
committerDan Williams <[email protected]>2021-02-17 03:44:40 +0000
commitc80b53204d6ee8f70e5f4e846bc0e62dda64aee0 (patch)
treef8f308a483fb0df8ca91783ee90934c3cc3cb694 /drivers/dax/device.c
parentdevice-dax: Fix error path in dax_driver_register (diff)
downloadkernel-c80b53204d6ee8f70e5f4e846bc0e62dda64aee0.tar.gz
kernel-c80b53204d6ee8f70e5f4e846bc0e62dda64aee0.zip
device-dax: Drop an empty .remove callback
The dax core properly handles a dax driver not having a remove callback. So drop it without changing the effective behaviour. Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'drivers/dax/device.c')
-rw-r--r--drivers/dax/device.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/dax/device.c b/drivers/dax/device.c
index 5da2980bb16b..db92573c94e8 100644
--- a/drivers/dax/device.c
+++ b/drivers/dax/device.c
@@ -452,15 +452,9 @@ int dev_dax_probe(struct dev_dax *dev_dax)
}
EXPORT_SYMBOL_GPL(dev_dax_probe);
-static int dev_dax_remove(struct dev_dax *dev_dax)
-{
- /* all probe actions are unwound by devm */
- return 0;
-}
-
static struct dax_device_driver device_dax_driver = {
.probe = dev_dax_probe,
- .remove = dev_dax_remove,
+ /* all probe actions are unwound by devm, so .remove isn't necessary */
.match_always = 1,
};