]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] stop CompactFlash devices being marked as removable
authorRichard Purdie <rpurdie@rpsys.net>
Fri, 3 Feb 2006 11:04:55 +0000 (03:04 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 3 Feb 2006 16:32:12 +0000 (08:32 -0800)
commit61d597738a3231156f17024e8889751820448ec3
treea82e186d96e443099fc67d9788943befcba996b3
parent7456a196d5c8a689abd2aa0d71e727b6358fc177
[PATCH] stop CompactFlash devices being marked as removable

This patch stops CompactFlash devices being marked as removable.  They are
not removable (as defined by Linux) as the media and device are
inseparable.  When a card is removed, the whole device is removed from the
system and never sits in a media-less state.

This stops some nasty udev device creation/destruction loops.

Further, once this change is made, there is no need for ide to can be
removed from ide_drive_t.

Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Acked-by: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/ide/ide-disk.c
drivers/ide/ide-probe.c
drivers/ide/ide.c
include/linux/ide.h