]> git.ipfire.org Git - thirdparty/linux.git/commit
nvdimm: make nd_class constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2024 08:19:42 +0000 (10:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2024 14:41:06 +0000 (16:41 +0200)
commit477e36546e6fa79282427d5b82a9a9a67504de1a
tree05303b339855f3fe7b39d8e6af5023f748dd3779
parentdd6e9894b451e7c85cceb8e9dc5432679a70e7dc
nvdimm: make nd_class constant

Now that the driver core allows for struct class to be in read-only
memory, it is possible to make all 'class' structures be declared at
build time. Move the class to a 'static const' declaration and register
it rather than dynamically create it."

Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: nvdimm@lists.linux.dev
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/2024061041-grandkid-coherence-19b0@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvdimm/bus.c