aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/qemu/q-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/qemu/q-setup.c')
-rw-r--r--arch/mips/qemu/q-setup.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/mips/qemu/q-setup.c b/arch/mips/qemu/q-setup.c
index 969cedc8d8b9..9f0c2d3c67ea 100644
--- a/arch/mips/qemu/q-setup.c
+++ b/arch/mips/qemu/q-setup.c
@@ -1,4 +1,5 @@
1#include <linux/init.h> 1#include <linux/init.h>
2#include <linux/platform_device.h>
2 3
3#include <asm/i8253.h> 4#include <asm/i8253.h>
4#include <asm/io.h> 5#include <asm/io.h>
@@ -20,3 +21,17 @@ void __init plat_mem_setup(void)
20{ 21{
21 qemu_reboot_setup(); 22 qemu_reboot_setup();
22} 23}
24
25static struct platform_device pcspeaker_pdev = {
26 .name = "pcspkr",
27 .id = -1,
28};
29
30static int __init qemu_platform_devinit(void)
31{
32 platform_device_register(&pcspeaker_pdev);
33
34 return 0;
35}
36
37device_initcall(qemu_platform_devinit);