Patchwork [02/23] nseries palm spitz: Suppress unused default drives

login
register
mail settings
Submitter Markus Armbruster
Date Aug. 9, 2012, 1:31 p.m.
Message ID <1344519084-21847-3-git-send-email-armbru@redhat.com>
Download mbox | patch
Permalink /patch/176116/
State New
Headers show

Comments

Markus Armbruster - Aug. 9, 2012, 1:31 p.m.
Cc: Andrzej Zaborowski <balrogg@gmail.com>

Suppress default floppy and CD-ROM drives for machines n800, n810,
cheetah, akita, spitz, borzoi, terrier.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 hw/nseries.c | 4 ++++
 hw/palm.c    | 2 ++
 hw/spitz.c   | 8 ++++++++
 3 files changed, 14 insertions(+)

Patch

diff --git a/hw/nseries.c b/hw/nseries.c
index 4df2670..c34e585 100644
--- a/hw/nseries.c
+++ b/hw/nseries.c
@@ -1409,12 +1409,16 @@  static QEMUMachine n800_machine = {
     .name = "n800",
     .desc = "Nokia N800 tablet aka. RX-34 (OMAP2420)",
     .init = n800_init,
+    .no_floppy = 1,
+    .no_cdrom = 1,
 };
 
 static QEMUMachine n810_machine = {
     .name = "n810",
     .desc = "Nokia N810 tablet aka. RX-44 (OMAP2420)",
     .init = n810_init,
+    .no_floppy = 1,
+    .no_cdrom = 1,
 };
 
 static void nseries_machine_init(void)
diff --git a/hw/palm.c b/hw/palm.c
index bacdc90..7bc40ee 100644
--- a/hw/palm.c
+++ b/hw/palm.c
@@ -279,6 +279,8 @@  static QEMUMachine palmte_machine = {
     .name = "cheetah",
     .desc = "Palm Tungsten|E aka. Cheetah PDA (OMAP310)",
     .init = palmte_init,
+    .no_floppy = 1,
+    .no_cdrom = 1,
 };
 
 static void palmte_machine_init(void)
diff --git a/hw/spitz.c b/hw/spitz.c
index 20e7835..91a4a38 100644
--- a/hw/spitz.c
+++ b/hw/spitz.c
@@ -976,24 +976,32 @@  static QEMUMachine akitapda_machine = {
     .name = "akita",
     .desc = "Akita PDA (PXA270)",
     .init = akita_init,
+    .no_floppy = 1,
+    .no_cdrom = 1,
 };
 
 static QEMUMachine spitzpda_machine = {
     .name = "spitz",
     .desc = "Spitz PDA (PXA270)",
     .init = spitz_init,
+    .no_floppy = 1,
+    .no_cdrom = 1,
 };
 
 static QEMUMachine borzoipda_machine = {
     .name = "borzoi",
     .desc = "Borzoi PDA (PXA270)",
     .init = borzoi_init,
+    .no_floppy = 1,
+    .no_cdrom = 1,
 };
 
 static QEMUMachine terrierpda_machine = {
     .name = "terrier",
     .desc = "Terrier PDA (PXA270)",
     .init = terrier_init,
+    .no_floppy = 1,
+    .no_cdrom = 1,
 };
 
 static void spitz_machine_init(void)