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)
commit29e6a5e01d0adae52a2859ed39cb9e607430e011
treeb70e3665d4570b33ae934af15d11fb94dd319891
parent018eca456c4b4dca56aaf1ec27f309c74d0fe246
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