block/ataflop: provide a helper for cleanup up an atari disk
authorLuis Chamberlain <mcgrof@kernel.org>
Mon, 27 Sep 2021 22:03:01 +0000 (15:03 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 20:41:37 +0000 (14:41 -0600)
commitdeae1138d04758c7f8939fcb8aee330bc37e3015
treebc00d058e0442e2b1be31a08e2743f49d2e3f971
parent573effb298011d3fcabc9b12025cf637f8a07911
block/ataflop: provide a helper for cleanup up an atari disk

Instead of using two separate code paths for cleaning up an atari disk,
use one. We take the more careful approach to check for *all* disk
types, as is done on exit. The init path didn't have that check as
the alternative disk types are only probed for later, they are not
initialized by default.

Yes, there is a shared tag for all disks.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20210927220302.1073499-14-mcgrof@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ataflop.c