OSDN Git Service

floppy: remove incomplete support for second FDC from ARM code
authorWilly Tarreau <w@1wt.eu>
Sun, 1 Mar 2020 19:55:51 +0000 (20:55 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Mar 2020 14:26:58 +0000 (08:26 -0600)
commit336eae37338590ea259954546a44a5f524256b6e
treedfeb648a9daf3fb8c1939da87ccb759327f1d9bd
parent3c6051afa3d4e22273e7eed11186513a12554515
floppy: remove incomplete support for second FDC from ARM code

The ARM code was written with the apparent hope to one day support
a second FDC except that the code was incomplete and only touches
the first one, which is also reflected by N_FDC==1. However this
made its fd_outb() macro artificially depend on the global or local
"fdc" variable.

Let's get rid of this and make it explicit it doesn't rely on this
variable anymore.

Link: https://lore.kernel.org/r/20200301195555.11154-3-w@1wt.eu
Cc: Ian Molton <spyro@f2s.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
arch/arm/include/asm/floppy.h