Message ID | 161661972722.1721612.7220170912347353657.stgit@dwillia2-desk3.amr.corp.intel.com |
---|---|
State | Superseded |
Headers | show |
Series | cxl/mem: Fix memdev device setup | expand |
diff --git a/drivers/cxl/mem.c b/drivers/cxl/mem.c index d615f183520c..338923a6b2ef 100644 --- a/drivers/cxl/mem.c +++ b/drivers/cxl/mem.c @@ -1204,6 +1204,7 @@ static int cxl_mem_add_memdev(struct cxl_mem *cxlm) dev->bus = &cxl_bus_type; dev->devt = MKDEV(cxl_mem_major, cxlmd->id); dev->type = &cxl_memdev_type; + device_set_pm_not_required(dev); cdev = &cxlmd->cdev; cdev_init(cdev, &cxl_memdev_fops);