diff options
Diffstat (limited to 'arch/i386/kernel/setup.c')
-rw-r--r-- | arch/i386/kernel/setup.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c index bd8c218d94af..122623dcc6e1 100644 --- a/arch/i386/kernel/setup.c +++ b/arch/i386/kernel/setup.c | |||
@@ -33,7 +33,6 @@ | |||
33 | #include <linux/initrd.h> | 33 | #include <linux/initrd.h> |
34 | #include <linux/bootmem.h> | 34 | #include <linux/bootmem.h> |
35 | #include <linux/seq_file.h> | 35 | #include <linux/seq_file.h> |
36 | #include <linux/platform_device.h> | ||
37 | #include <linux/console.h> | 36 | #include <linux/console.h> |
38 | #include <linux/mca.h> | 37 | #include <linux/mca.h> |
39 | #include <linux/root_dev.h> | 38 | #include <linux/root_dev.h> |
@@ -660,28 +659,3 @@ void __init setup_arch(char **cmdline_p) | |||
660 | #endif | 659 | #endif |
661 | tsc_init(); | 660 | tsc_init(); |
662 | } | 661 | } |
663 | |||
664 | static __init int add_pcspkr(void) | ||
665 | { | ||
666 | struct platform_device *pd; | ||
667 | int ret; | ||
668 | |||
669 | pd = platform_device_alloc("pcspkr", -1); | ||
670 | if (!pd) | ||
671 | return -ENOMEM; | ||
672 | |||
673 | ret = platform_device_add(pd); | ||
674 | if (ret) | ||
675 | platform_device_put(pd); | ||
676 | |||
677 | return ret; | ||
678 | } | ||
679 | device_initcall(add_pcspkr); | ||
680 | |||
681 | /* | ||
682 | * Local Variables: | ||
683 | * mode:c | ||
684 | * c-file-style:"k&r" | ||
685 | * c-basic-offset:8 | ||
686 | * End: | ||
687 | */ | ||