A small collection of fixes mostly inspired by Jason's recognition of dev_set_name() error handling mistakes on other driver review.
dev_set_name() can fail and although device_add() might catch it that's not a reliable assumption. While fixing that I noticed that the unwind handling for cdev_device_add() failures leaked the device name. The sysfs_emit() fixup and unpublishing of device power management files are just sanity cleanups. --- Dan Williams (4): cxl/mem: Use sysfs_emit() for attribute show routines cxl/mem: Fix cdev_device_add() error handling cxl/mem: Do not rely on device_add() side effects for dev_set_name() failures cxl/mem: Disable cxl device power management drivers/cxl/mem.c | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) base-commit: a38fd8748464831584a19438cbb3082b5a2dab15