diff options
Diffstat (limited to 'arch/i386/kernel/setup.c')
-rw-r--r-- | arch/i386/kernel/setup.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c index ab62a9f4701e..a0b407585679 100644 --- a/arch/i386/kernel/setup.c +++ b/arch/i386/kernel/setup.c | |||
@@ -34,6 +34,7 @@ | |||
34 | #include <linux/initrd.h> | 34 | #include <linux/initrd.h> |
35 | #include <linux/bootmem.h> | 35 | #include <linux/bootmem.h> |
36 | #include <linux/seq_file.h> | 36 | #include <linux/seq_file.h> |
37 | #include <linux/platform_device.h> | ||
37 | #include <linux/console.h> | 38 | #include <linux/console.h> |
38 | #include <linux/mca.h> | 39 | #include <linux/mca.h> |
39 | #include <linux/root_dev.h> | 40 | #include <linux/root_dev.h> |
@@ -1634,6 +1635,23 @@ void __init setup_arch(char **cmdline_p) | |||
1634 | #endif | 1635 | #endif |
1635 | } | 1636 | } |
1636 | 1637 | ||
1638 | static __init int add_pcspkr(void) | ||
1639 | { | ||
1640 | struct platform_device *pd; | ||
1641 | int ret; | ||
1642 | |||
1643 | pd = platform_device_alloc("pcspkr", -1); | ||
1644 | if (!pd) | ||
1645 | return -ENOMEM; | ||
1646 | |||
1647 | ret = platform_device_add(pd); | ||
1648 | if (ret) | ||
1649 | platform_device_put(pd); | ||
1650 | |||
1651 | return ret; | ||
1652 | } | ||
1653 | device_initcall(add_pcspkr); | ||
1654 | |||
1637 | #include "setup_arch_post.h" | 1655 | #include "setup_arch_post.h" |
1638 | /* | 1656 | /* |
1639 | * Local Variables: | 1657 | * Local Variables: |