aboutsummaryrefslogtreecommitdiff
path: root/include/hw/ppc/pnv_pnor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hw/ppc/pnv_pnor.h')
-rw-r--r--include/hw/ppc/pnv_pnor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/ppc/pnv_pnor.h b/include/hw/ppc/pnv_pnor.h
index 8b27bf111c..1ec4098bb9 100644
--- a/include/hw/ppc/pnv_pnor.h
+++ b/include/hw/ppc/pnv_pnor.h
@@ -17,7 +17,8 @@
#define TYPE_PNV_PNOR "pnv-pnor"
typedef struct PnvPnor PnvPnor;
-#define PNV_PNOR(obj) OBJECT_CHECK(PnvPnor, (obj), TYPE_PNV_PNOR)
+DECLARE_INSTANCE_CHECKER(PnvPnor, PNV_PNOR,
+ TYPE_PNV_PNOR)
struct PnvPnor {
SysBusDevice parent_obj;