From c7075dd2b153cad6e39d2acf617d0ad555c158ea Mon Sep 17 00:00:00 2001
From: Matt Borgerson <contact@mborgerson.com>
Date: Sun, 18 Apr 2021 22:10:34 -0700
Subject: [PATCH] ac97: Move TYPE_AC97 definition to ac97_int.h

---
 hw/audio/ac97.c     | 3 ---
 hw/audio/ac97_int.h | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c
index 3b6154a073..3644bd9a17 100644
--- a/hw/audio/ac97.c
+++ b/hw/audio/ac97.c
@@ -131,9 +131,6 @@ enum {
 
 #define MUTE_SHIFT 15
 
-#define TYPE_AC97 "AC97"
-OBJECT_DECLARE_SIMPLE_TYPE(AC97LinkState, AC97)
-
 #define REC_MASK 7
 enum {
     REC_MIC = 0,
diff --git a/hw/audio/ac97_int.h b/hw/audio/ac97_int.h
index 989df4bd62..a8ca076f97 100644
--- a/hw/audio/ac97_int.h
+++ b/hw/audio/ac97_int.h
@@ -51,6 +51,7 @@ typedef struct AC97BusMasterRegs {
     BD bd;
 } AC97BusMasterRegs;
 
+#define TYPE_AC97 "AC97"
 OBJECT_DECLARE_SIMPLE_TYPE(AC97LinkState, AC97)
 
 struct AC97LinkState {