summaryrefslogtreecommitdiff
path: root/drivers/cxl/core/pmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/cxl/core/pmu.c')
-rw-r--r--drivers/cxl/core/pmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cxl/core/pmu.c b/drivers/cxl/core/pmu.c
index 7684c843e5a5..5d8e06b0ba6e 100644
--- a/drivers/cxl/core/pmu.c
+++ b/drivers/cxl/core/pmu.c
@@ -23,7 +23,7 @@ const struct device_type cxl_pmu_type = {
static void remove_dev(void *dev)
{
- device_del(dev);
+ device_unregister(dev);
}
int devm_cxl_pmu_add(struct device *parent, struct cxl_pmu_regs *regs,