]> git.baikalelectronics.ru Git - kernel.git/commit
block: fold register_disk into device_add_disk
authorChristoph Hellwig <hch@lst.de>
Wed, 18 Aug 2021 14:45:33 +0000 (16:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 23 Aug 2021 18:55:45 +0000 (12:55 -0600)
commit52b85909f85d06efa69aaf4210e72467f1f58d2b
tree4ec1c98cb54dd78421550335f28c32693927317b
parent40b3a52ffc5bc3b5427d5d35b035cfb19d03fdd6
block: fold register_disk into device_add_disk

There is no real reason these should be separate.  Also simplify the
groups assignment a bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210818144542.19305-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c