From: Olaf Hering Date: Fri, 1 Sep 2006 04:27:41 +0000 (-0700) Subject: [PATCH] exit early in floppy_init when no floppy exists X-Git-Tag: v2.6.18-rc6~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef16b5194f3233a11851180cd82eafb76542047d;p=pandora-kernel.git [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-diff-tree failed