pcmcia: do not initialize the present flag too late.
authorDominik Brodowski <linux@dominikbrodowski.net>
Sat, 19 Jun 2010 12:33:56 +0000 (14:33 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 2 Aug 2010 17:30:22 +0000 (10:30 -0700)
commit61ef6cc2a3140bab5d4e359cdd4a71bcea7c0fc3
tree388df1ed728ee23b775e3e3a5f1543734555682a
parent50faa2b8b0f1d7e26ec784152d1c8021df67ce4f
pcmcia: do not initialize the present flag too late.

commit e4f1ac2122413736bf2791d3af6533f36b46fc61 upstream.

The "present" flag was initialized too late -- possibly, a card
was already registered at this time, so re-setting the flag to 0
caused pcmcia_dev_present() to fail.

Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pcmcia/ds.c