]> git.dujemihanovic.xyz Git - u-boot.git/commit
block: ide: Don't bother to create BLK device if no CDROM inserted
authorBin Meng <bmeng.cn@gmail.com>
Sun, 10 Sep 2017 12:12:52 +0000 (05:12 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 10 Sep 2017 16:27:40 +0000 (12:27 -0400)
commit1f4adab8733b29f81d21f74e2194bd8ddb80e574
treee0ad5d58c49deee613718386ec69bf955cafd84d
parent68e6f221ed08674374dc397fe52a64817599fce7
block: ide: Don't bother to create BLK device if no CDROM inserted

When there is no CDROM inserted, the block size is zero hence there
is no need to create a BLK device for it.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/block/ide.c