From ef16b5194f3233a11851180cd82eafb76542047d Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Thu, 31 Aug 2006 21:27:41 -0700 Subject: [PATCH] [PATCH] exit early in floppy_init when no floppy exists modprobe -v floppy on a Apple G5 writes incorrect stuff to dmesg: Floppy drive(s): fd0 is 2.88M The reason is that the legacy io check happens very late, when part of the floppy stuff is already initialized. check_legacy_ioport() returns either -ENODEV right away, or it walks the device-tree looking for a floppy node. Signed-off-by: Olaf Hering Acked-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-format-patch failed