diff --git a/docs/devel/qom.rst b/docs/devel/qom.rst
index e5fe3597cd823394392e065b6628b3aeb6ec9b8b..0cf9a714f0539b5edac3f856501588b3cec4a2f5 100644
--- a/docs/devel/qom.rst
+++ b/docs/devel/qom.rst
@@ -292,8 +292,7 @@ in the header file:
 .. code-block:: c
    :caption: Declaring a simple type
 
-   OBJECT_DECLARE_SIMPLE_TYPE(MyDevice, my_device,
-                              MY_DEVICE, DEVICE)
+   OBJECT_DECLARE_SIMPLE_TYPE(MyDevice, MY_DEVICE)
 
 This is equivalent to the following: