aboutsummaryrefslogtreecommitdiff
path: root/hw/integratorcp.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-05-14 22:35:07 +0100
committerPaul Brook <paul@codesourcery.com>2009-05-14 22:35:07 +0100
commitaa9311d8cbd6250b9443b0f12b85d8176ec057ca (patch)
tree52c978c711b9c2b1bd0f2738a7389fdda8623d41 /hw/integratorcp.c
parenta63bdb31026648fef5d4ffb3caafc973c8ced53c (diff)
PL181 qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/integratorcp.c')
-rw-r--r--hw/integratorcp.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/hw/integratorcp.c b/hw/integratorcp.c
index 8966a25b55..b889f6f2cd 100644
--- a/hw/integratorcp.c
+++ b/hw/integratorcp.c
@@ -458,7 +458,6 @@ static void integratorcp_init(ram_addr_t ram_size,
ram_addr_t ram_offset;
qemu_irq *pic;
qemu_irq *cpu_pic;
- int sd;
if (!cpu_model)
cpu_model = "arm926";
@@ -487,12 +486,7 @@ static void integratorcp_init(ram_addr_t ram_size,
icp_control_init(0xcb000000);
sysbus_create_simple("pl050_keyboard", 0x18000000, pic[3]);
sysbus_create_simple("pl050_mouse", 0x19000000, pic[4]);
- sd = drive_get_index(IF_SD, 0, 0);
- if (sd == -1) {
- fprintf(stderr, "qemu: missing SecureDigital card\n");
- exit(1);
- }
- pl181_init(0x1c000000, drives_table[sd].bdrv, pic[23], pic[24]);
+ sysbus_create_varargs("pl181", 0x1c000000, pic[23], pic[24], NULL);
if (nd_table[0].vlan)
smc91c111_init(&nd_table[0], 0xc8000000, pic[27]);