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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:17:07 +0000 (19:17 +0100)
commite107071961c558f445ed4d66c45278b35b4b9298
tree31a702e337f5f3b3e3ae22e3c83cfb0c3c85a8e8
parent875ffb42476b2156da9dd96445a4e66b8e201086
block/ataflop: provide a helper for cleanup up an atari disk

[ Upstream commit deae1138d04758c7f8939fcb8aee330bc37e3015 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/block/ataflop.c