mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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>
This commit is contained in:
parent
3b6ce2497f
commit
9810933701
4 changed files with 9 additions and 50 deletions
|
@ -582,7 +582,6 @@ typedef struct ide_drive_s {
|
|||
unsigned noprobe : 1; /* from: hdx=noprobe */
|
||||
unsigned removable : 1; /* 1 if need to do check_media_change */
|
||||
unsigned attach : 1; /* needed for removable devices */
|
||||
unsigned is_flash : 1; /* 1 if probed as flash */
|
||||
unsigned forced_geom : 1; /* 1 if hdx=c,h,s was given at boot */
|
||||
unsigned no_unmask : 1; /* disallow setting unmask bit */
|
||||
unsigned no_io_32bit : 1; /* disallow enabling 32bit I/O */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue