Skip to contentSkip to conversation

hw/timer/arm_mptimer.c: Undo accidental rename of arm_mptimer_init()

PATCH In review Peter Maydell 3 participants 3 messages Oct 17, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hw/timer/arm_mptimer.c: Undo accidental rename of arm_mptimer_init()

In commit b01422622b we did an automated rename of the ptimer_init() function to ptimer_init_with_bh(). Unfortunately this caught the unrelated arm_mptimer_init() function. Undo that accidental renaming.

Fixes b01422622b7c7293196fdaf1dbb4f495af44ecf9
---
 hw/timer/arm_mptimer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/timer/arm_mptimer.c +2 -2
index fdf97d1800f..2bf11f788c3 100644
@@ -237,7 +237,7 @@ static void arm_mptimer_reset(DeviceState *dev)
     }
 }
 
-static void arm_mptimer_init_with_bh(Object *obj)
+static void arm_mptimer_init(Object *obj)
 {
     ARMMPTimerState *s = ARM_MPTIMER(obj);
 
@@ -319,7 +319,7 @@ static const TypeInfo arm_mptimer_info = {
     .name          = TYPE_ARM_MPTIMER,
     .parent        = TYPE_SYS_BUS_DEVICE,
     .instance_size = sizeof(ARMMPTimerState),
-    .instance_init = arm_mptimer_init_with_bh,
+    .instance_init = arm_mptimer_init,
     .class_init    = arm_mptimer_class_init,
 };
 
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Peter Maydell

In commit b01422622b we did an automated rename of the ptimer_init() function to ptimer_init_with_bh(). Unfortunately this caught the unrelated arm_mptimer_init() function. Undo that accidental renaming.

Fixes b01422622b7c7293196fdaf1dbb4f495af44ecf9
---
 hw/timer/arm_mptimer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

r~

Reviewed-by on v1 1/1
#2 lore raw
In reply to Peter Maydell
Quoted 7 lines · Peter Maydell

In commit b01422622b we did an automated rename of the ptimer_init() function to ptimer_init_with_bh(). Unfortunately this caught the unrelated arm_mptimer_init() function. Undo that accidental renaming.

Fixes b01422622b7c7293196fdaf1dbb4f495af44ecf9
Quoted 27 lines
---
  hw/timer/arm_mptimer.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
hw/timer/arm_mptimer.c +2 -2
index fdf97d1800f..2bf11f788c3 100644
@@ -237,7 +237,7 @@ static void arm_mptimer_reset(DeviceState *dev)
      }
  }
 
-static void arm_mptimer_init_with_bh(Object *obj)
+static void arm_mptimer_init(Object *obj)
  {
      ARMMPTimerState *s = ARM_MPTIMER(obj);
 
@@ -319,7 +319,7 @@ static const TypeInfo arm_mptimer_info = {
      .name          = TYPE_ARM_MPTIMER,
      .parent        = TYPE_SYS_BUS_DEVICE,
      .instance_size = sizeof(ARMMPTimerState),
-    .instance_init = arm_mptimer_init_with_bh,
+    .instance_init = arm_mptimer_init,
      .class_init    = arm_mptimer_class_init,
  };