summaryrefslogtreecommitdiff
path: root/drivers/nvdimm/bus.c
diff options
context:
space:
mode:
authorVinod Koul <vkoul@kernel.org>2021-07-27 16:42:14 +0300
committerVinod Koul <vkoul@kernel.org>2021-07-27 16:42:14 +0300
commitc28d5d5688c6278a1ad32670cbee35802a9e65c1 (patch)
tree9ee168f44d748f04d9fdbb490fbfabb55a39b708 /drivers/nvdimm/bus.c
parent0e96454ca26cc5c594ec792f7e5168cce726f7cf (diff)
parentfc7a6209d5710618eb4f72a77cd81b8d694ecf89 (diff)
downloadlinux-c28d5d5688c6278a1ad32670cbee35802a9e65c1.tar.xz
Merge tag 'bus_remove_return_void-5.15' into next
This helps to remove conflict on idxd driver Conflicts: drivers/dma/idxd/sysfs.c drivers/dma/idxd/bus.c Greg says: Bus: Make remove callback return void tag Tag for other trees/branches to pull from in order to have a stable place to build off of if they want to add new busses for 5.15. Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/nvdimm/bus.c')
-rw-r--r--drivers/nvdimm/bus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/nvdimm/bus.c b/drivers/nvdimm/bus.c
index e6aa87043a95..9dc7f3edd42b 100644
--- a/drivers/nvdimm/bus.c
+++ b/drivers/nvdimm/bus.c
@@ -108,7 +108,7 @@ static int nvdimm_bus_probe(struct device *dev)
return rc;
}
-static int nvdimm_bus_remove(struct device *dev)
+static void nvdimm_bus_remove(struct device *dev)
{
struct nd_device_driver *nd_drv = to_nd_device_driver(dev->driver);
struct module *provider = to_bus_provider(dev);
@@ -123,7 +123,6 @@ static int nvdimm_bus_remove(struct device *dev)
dev_dbg(&nvdimm_bus->dev, "%s.remove(%s)\n", dev->driver->name,
dev_name(dev));
module_put(provider);
- return 0;
}
static void nvdimm_bus_shutdown(struct device *dev)