Skip to content

Commit

Permalink
pcmcia: autoload module pcmcia
Browse files Browse the repository at this point in the history
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@nifty.com>
but converted it to request_module_nowait() and move it to a later
stage.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
  • Loading branch information
Dominik Brodowski committed Nov 9, 2009
1 parent 55a19b3 commit 638bba5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/pcmcia/cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,13 @@ int pcmcia_register_socket(struct pcmcia_socket *socket)

pcmcia_parse_events(socket, SS_DETECT);

/*
* Let's try to get the PCMCIA module for 16-bit PCMCIA support.
* If it fails, it doesn't matter -- we still have 32-bit CardBus
* support to offer, so this is not a failure mode.
*/
request_module_nowait("pcmcia");

return 0;

err:
Expand Down

0 comments on commit 638bba5

Please sign in to comment.