android_kernel_xiaomi_sm7250/drivers/nvdimm
Hannes Reinecke 54399d7eb2 block: genhd: add 'groups' argument to device_add_disk
commit fef912bf860e8e7e48a2bfb978a356bba743a8b7 upstream.

Update device_add_disk() to take an 'groups' argument so that
individual drivers can register a device with additional sysfs
attributes.
This avoids race condition the driver would otherwise have if these
groups were to be created with sysfs_add_groups().

Signed-off-by: Martin Wilck <martin.wilck@suse.com>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
2022-11-12 11:22:42 +00:00
..
badrange.c
blk.c block: genhd: add 'groups' argument to device_add_disk 2022-11-12 11:22:42 +00:00
btt_devs.c
btt.c block: genhd: add 'groups' argument to device_add_disk 2022-11-12 11:22:42 +00:00
btt.h
bus.c
claim.c
core.c
dax_devs.c
dimm_devs.c
dimm.c
e820.c
Kconfig
label.c
label.h
Makefile
namespace_devs.c
nd_virtio.c
nd-core.h
nd.h
of_pmem.c
pfn_devs.c
pfn.h
pmem.c block: genhd: add 'groups' argument to device_add_disk 2022-11-12 11:22:42 +00:00
pmem.h
region_devs.c
region.c
virtio_pmem.c
virtio_pmem.h