]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/nvram/xlnx-efuse: Do not expose as user-creatable
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 25 Mar 2025 22:21:28 +0000 (23:21 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 31 Mar 2025 19:32:43 +0000 (21:32 +0200)
This device is part of SoC components thus can not
be created manually.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20250325224310.8785-10-philmd@linaro.org>

hw/nvram/xlnx-efuse.c

index 29e7dd539ec6db030ba812489855a721f3dcf249..176e88fcd17869cf6a388d5eea7d4fa30054a230 100644 (file)
@@ -280,6 +280,8 @@ static void efuse_class_init(ObjectClass *klass, void *data)
 
     dc->realize = efuse_realize;
     device_class_set_props(dc, efuse_properties);
+    /* Reason: Part of Xilinx SoC */
+    dc->user_creatable = false;
 }
 
 static const TypeInfo efuse_info = {