From: Ondrej Zary Date: Wed, 9 Nov 2005 23:25:15 +0000 (+0100) Subject: [PATCH] ide-floppy: software eject not working with LS-120 drive X-Git-Tag: v2.6.15-rc1~52^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07203f6471a11f4eda48acbe528c0ce4704ad42c;p=pandora-kernel.git [PATCH] ide-floppy: software eject not working with LS-120 drive The problem (eject not working on ATAPI LS-120 drive) is caused by idefloppy_ioctl() function which *first* tries generic_ide_ioctl() and *only* if it fails with -EINVAL, proceeds with the specific ioctls. The generic eject command fails with something other than -EINVAL and the specific one is never executed. This patch fixes it by first going through the internal ioctls and only trying generic_ide_ioctl() if none of them matches. Signed-off-by: Ondrej Zary Signed-off-by: Bartlomiej Zolnierkiewicz --- Reading git-diff-tree failed