]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: block: let device_add_disk create disk attributes
authorChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 06:40:21 +0000 (08:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Aug 2021 16:29:35 +0000 (10:29 -0600)
commitb75cf540aaeb5de9e29d15642790cdda2731bb03
treeb70e3665d4570b33ae934af15d11fb94dd319891
parentb42a5c0e0ece3e3d23c2cfd693df0bcdb0006573
mmc: block: let device_add_disk create disk attributes

Pass the attribute group for the attributes on the gendisk to
device_add_disk so that they are created atomically with the
disk creation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20210809064028.1198327-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/mmc/core/block.c