libnvdimm: Drop unused device power management support
authorDan Williams <dan.j.williams@intel.com>
Tue, 15 Jun 2021 23:18:28 +0000 (16:18 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 15 Jun 2021 23:47:27 +0000 (16:47 -0700)
commit2bbafda405c04cfed1b57b761d13ada3154c0f89
tree02eaff1d6e146e4039b65b3f80ce60d1422ad65d
parentfd14602d05229671be81018fa226f9afdafdba88
libnvdimm: Drop unused device power management support

LIBNVDIMM device objects register sysfs power attributes despite nothing
requiring that support. Clean up sysfs remove the power/ attribute
group. This requires a device_create() and a device_register() usage to
be converted to the device_initialize() + device_add() pattern.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/162379910795.2993820.10130417680551632288.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/bus.c