[PATCH] pcmcia: mark resource setup as done
PCMCIA device registration should only happen if we're quite confident there are resources available to at least map the CIS space -- else we can't determine manfid/cardid, whether it is a multifunction card, etc. So, add a flag to struct pcmcia_socket which denotes that -- and also whether resources were added the "old" adjust_resource_info way. On static sockets, it is activated upon registration, on non-static sockets, it is set upon an echo'ing of anything into /sys/class/pcmcia_socket/pcmcia_socket%n/device_possible_resources_setup_done Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing
Please register or sign in to comment