public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MMC block removable flag
@ 2004-12-30  2:14 Pierre Ossman
  2004-12-30  9:54 ` Russell King
  0 siblings, 1 reply; 9+ messages in thread
From: Pierre Ossman @ 2004-12-30  2:14 UTC (permalink / raw)
  To: LKML, Russell King

[-- Attachment #1: Type: text/plain, Size: 132 bytes --]

A MMC card is a highly removable device. This patch makes the block 
layer part of the MMC layer set the removable flag.

--
Pierre

[-- Attachment #2: mmc-removable.patch --]
[-- Type: text/x-patch, Size: 499 bytes --]

Index: linux-wbsd/drivers/mmc/mmc_block.c
===================================================================
--- linux-wbsd/drivers/mmc/mmc_block.c	(revision 99)
+++ linux-wbsd/drivers/mmc/mmc_block.c	(revision 100)
@@ -384,6 +384,7 @@
 		md->disk->private_data = md;
 		md->disk->queue = md->queue.queue;
 		md->disk->driverfs_dev = &card->dev;
+		md->disk->flags |= GENHD_FL_REMOVABLE;
 
 		sprintf(md->disk->disk_name, "mmcblk%d", devidx);
 		sprintf(md->disk->devfs_name, "mmc/blk%d", devidx);

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-01-08 13:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-30  2:14 [PATCH] MMC block removable flag Pierre Ossman
2004-12-30  9:54 ` Russell King
2004-12-30 15:56   ` Pierre Ossman
2005-01-07 12:39     ` Russell King
2005-01-07 14:00       ` Andries Brouwer
2005-01-08 11:09         ` Russell King
2005-01-08 12:05           ` Christoph Hellwig
2005-01-08 12:45             ` Russell King
2005-01-08 13:07           ` Andries Brouwer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox