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)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 5 Jul 2010 10:37:48 +0000 (12:37 +0200)
commite4f1ac2122413736bf2791d3af6533f36b46fc61
tree5e082638cb15e8fa4631ccd05ffdd89fec097cbd
parent815c4163b6c8ebf8152f42b0a5fd015cfdcedc78
pcmcia: do not initialize the present flag too late.

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>
drivers/pcmcia/ds.c