aboutsummaryrefslogtreecommitdiff
path: root/include/hw/misc/avr_power.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/misc/avr_power.h')
-rw-r--r--include/hw/misc/avr_power.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/misc/avr_power.h b/include/hw/misc/avr_power.h
index c230a2655c..938ab3e21b 100644
--- a/include/hw/misc/avr_power.h
+++ b/include/hw/misc/avr_power.h
@@ -32,7 +32,8 @@
#define TYPE_AVR_MASK "avr-power"
typedef struct AVRMaskState AVRMaskState;
-#define AVR_MASK(obj) OBJECT_CHECK(AVRMaskState, (obj), TYPE_AVR_MASK)
+DECLARE_INSTANCE_CHECKER(AVRMaskState, AVR_MASK,
+ TYPE_AVR_MASK)
struct AVRMaskState {
/* <private> */