Skip to contentSkip to conversation

bt-hci-csr: drop unused argument

PATCH Applied Paolo Bonzini 2 participants 2 messages Sep 14, 2016 – Sep 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bt-hci-csr: drop unused argument

---
 hw/arm/nseries.c | 3 +--
 hw/bt/hci-csr.c  | 2 +-
 include/hw/bt.h  | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)
hw/arm/nseries.c +1 -2
index fea911e..c86cf80 100644
@@ -786,8 +786,7 @@ static void n8x0_cbus_setup(struct n800_s *s)
 
 static void n8x0_uart_setup(struct n800_s *s)
 {
-    CharDriverState *radio = uart_hci_init(
-                    qdev_get_gpio_in(s->mpu->gpio, N8X0_BT_HOST_WKUP_GPIO));
+    CharDriverState *radio = uart_hci_init();
 
     qdev_connect_gpio_out(s->mpu->gpio, N8X0_BT_RESET_GPIO,
                     csrhci_pins_get(radio)[csrhci_pin_reset]);
hw/bt/hci-csr.c +1 -1
index d688372..b77c036 100644
@@ -458,7 +458,7 @@ qemu_irq *csrhci_pins_get(CharDriverState *chr)
     return s->pins;
 }
 
-CharDriverState *uart_hci_init(qemu_irq wakeup)
+CharDriverState *uart_hci_init(void)
 {
     struct csrhci_s *s = (struct csrhci_s *)
             g_malloc0(sizeof(struct csrhci_s));
include/hw/bt.h +1 -1
index 185e79d..03124dc 100644
@@ -128,7 +128,7 @@ enum {
     __csrhci_pins,
 };
 qemu_irq *csrhci_pins_get(CharDriverState *chr);
-CharDriverState *uart_hci_init(qemu_irq wakeup);
+CharDriverState *uart_hci_init(void);
 
 /* bt-l2cap.c */
 struct bt_l2cap_device_s;
Signature · 1 line
2.7.4