From: Anderson Briglia <anderson.briglia@indt.org.br>
To: "Linux-omap-open-source@linux.omap.com"
<linux-omap-open-source@linux.omap.com>
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
Subject: [PATCH] MMC - CONFIG_HOTPLUG support
Date: Fri, 16 Dec 2005 15:50:13 -0400 [thread overview]
Message-ID: <43A31A75.7070500@indt.org.br> (raw)
[-- Attachment #1: Type: text/plain, Size: 139 bytes --]
Hi all,
This patch improves the CONFIG_HOTPLUG support on the mmc core driver.
Kernel version: 2.6.15-rc4-omap1
BR,
--
Anderson Briglia
[-- Attachment #2: mmc_config_hotplug.diff --]
[-- Type: text/x-patch, Size: 948 bytes --]
Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>
Index: linux-2.6.15-rc4/drivers/mmc/mmc_sysfs.c
===================================================================
--- linux-2.6.15-rc4.orig/drivers/mmc/mmc_sysfs.c 2005-12-15 17:00:52.000000000 -0400
+++ linux-2.6.15-rc4/drivers/mmc/mmc_sysfs.c 2005-12-15 17:54:07.000000000 -0400
@@ -145,6 +145,8 @@ static int mmc_bus_match(struct device *
return !mmc_card_bad(card);
}
+#ifdef CONFIG_HOTPLUG
+
static int
mmc_bus_hotplug(struct device *dev, char **envp, int num_envp, char *buf,
int buf_size)
@@ -180,6 +182,17 @@ mmc_bus_hotplug(struct device *dev, char
return 0;
}
+#else
+
+static int
+mmc_bus_hotplug(struct device *dev, char **envp, int num_envp, char *buf,
+ int buf_size)
+{
+ return -ENODEV;
+}
+
+#endif /* CONFIG_HOTPLUG */
+
static int mmc_bus_suspend(struct device *dev, pm_message_t state)
{
struct mmc_driver *drv = to_mmc_driver(dev->driver);
[-- Attachment #3: Type: text/plain, Size: 0 bytes --]
next reply other threads:[~2005-12-16 19:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-16 19:50 Anderson Briglia [this message]
2005-12-16 21:58 ` [PATCH] MMC - CONFIG_HOTPLUG support Russell King - ARM Linux
2005-12-19 12:52 ` Anderson.Briglia
2005-12-19 13:04 ` Russell King - ARM Linux
2005-12-19 15:44 ` Juha Yrjölä
2005-12-19 16:02 ` Anderson.Briglia
2005-12-24 22:35 ` Russell King - ARM Linux
2005-12-26 18:46 ` Anderson.Briglia
2005-12-31 16:00 ` Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43A31A75.7070500@indt.org.br \
--to=anderson.briglia@indt.org.br \
--cc=linux-omap-open-source@linux.omap.com \
--cc=linux@arm.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox