]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6564a20b98798ea0d7b56eb393b62fb254879d41
tree02eaff1d6e146e4039b65b3f80ce60d1422ad65d
parent812c68894c5c9191ff448d1e76ba76c9ecdf8ddd
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