Commit 2f5b002b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Li Nan
Browse files

block: fold register_disk into device_add_disk

mainline inclusion
from mainline-v5.15-rc1
commit 52b85909
category: bugfix
bugzilla: 188733

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=52b85909f85d06efa69aaf4210e72467f1f58d2b



----------------------------------------

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

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210818144542.19305-3-hch@lst.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
conflict:
  block/genhd.c
Signed-off-by: default avatarZhong Jinghua <zhongjinghua@huawei.com>
Signed-off-by: default avatarLi Nan <linan122@huawei.com>
parent 903d0f49
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment