blkdev: Break apart blkdev_init
authorAlan Cox <alan@linux.intel.com>
Tue, 6 Jan 2015 12:31:14 +0000 (12:31 +0000)
committerAlan Cox <alan@linux.intel.com>
Tue, 6 Jan 2015 12:31:14 +0000 (12:31 +0000)
commit08dcea72180c4de942e9f9ede0b99de78a604f4a
tree60212cfb3c85df0065626ca12f79559b13d29a5a
parent038d86e1920277d5eda2302f5288d57e48205343
blkdev: Break apart blkdev_init

There are two reasons for doing this

1. We push a lot of arguments, and will need to push more which will break the
   planned banked kernel, as well as eating memory
2. We want to give drivers the ability to provide their own alternative scan
   methods

Doing the alloc/assign/scan sequence doesn't cost us anything but is much
more flexible.
Kernel/dev/blkdev.c
Kernel/dev/blkdev.h
Kernel/dev/devide.c
Kernel/dev/devsd.c