Revision e4bcb14c hw/spitz.c
b/hw/spitz.c | ||
---|---|---|
940 | 940 |
static void spitz_microdrive_attach(struct pxa2xx_state_s *cpu) |
941 | 941 |
{ |
942 | 942 |
struct pcmcia_card_s *md; |
943 |
BlockDriverState *bs = bs_table[0]; |
|
943 |
int index; |
|
944 |
BlockDriverState *bs; |
|
944 | 945 |
|
945 |
if (bs && bdrv_is_inserted(bs) && !bdrv_is_removable(bs)) { |
|
946 |
index = drive_get_index(IF_IDE, 0, 0); |
|
947 |
if (index == -1) |
|
948 |
return; |
|
949 |
bs = drives_table[index].bdrv; |
|
950 |
if (bdrv_is_inserted(bs) && !bdrv_is_removable(bs)) { |
|
946 | 951 |
md = dscm1xxxx_init(bs); |
947 | 952 |
pxa2xx_pcmcia_attach(cpu->pcmcia[1], md); |
948 | 953 |
} |
Also available in: Unified diff