[PATCH] pcmcia: cs.c : load "pcmcia" module automatically.
linux at dominikbrodowski.net
Sat Nov 7 07:17:05 EST 2009
On Tue, Nov 03, 2009 at 08:22:48AM +0900, Komuro wrote:
> >> This patch integrates some of the pcmciautils feature into the kernel.
> >yes, but why? Also, wouldn't request_module_nowait() suffice?
> Because the "pcmcia" is kernel module, so I think it should be
> loaded by kernel, if kernel can do it.
> Even if distribution developer forgets to install the pcmciautils,
> the "pcmcia" is loaded with this patch.
> (especially embedded systems)
> I think request_module_nowait is better.
What about this?
[PATCH] pcmcia: autoload module pcmcia
Attempt to load the "pcmcia" module for 16-bit PCMCIA cards, so that
PCMCIA support becomes available without pcmciautils/udev userspace
interaction. Based on a suggestion and a patch
Signed-off-by: Komuro <komurojun-mbn at nifty.com>
but converted it to request_module_nowait() and move it to a later
Signed-off-by: Dominik Brodowski <linux at dominikbrodowski.net>
diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c
index b229f6d..f56e88c 100644
@@ -243,6 +243,13 @@ int pcmcia_register_socket(struct pcmcia_socket *socket)
+ * Let's try to get the PCMCIA module for 16-bit PCMCIA support.
+ * If it fails, it doesn't matter -- we still havae 32-bit CardBus
+ * support to offer, so this is not a failure mode.
More information about the linux-pcmcia