From 871480933a1c28f8a9fed4c4d34d06c439a7a422 Mon Sep 17 00:00:00 2001 From: Srikant Patnaik Date: Sun, 11 Jan 2015 12:28:04 +0530 Subject: Moved, renamed, and deleted files The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure. --- arch/x86/kernel/pcspeaker.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 arch/x86/kernel/pcspeaker.c (limited to 'arch/x86/kernel/pcspeaker.c') diff --git a/arch/x86/kernel/pcspeaker.c b/arch/x86/kernel/pcspeaker.c new file mode 100644 index 00000000..a311ffca --- /dev/null +++ b/arch/x86/kernel/pcspeaker.c @@ -0,0 +1,13 @@ +#include +#include +#include + +static __init int add_pcspkr(void) +{ + struct platform_device *pd; + + pd = platform_device_register_simple("pcspkr", -1, NULL, 0); + + return IS_ERR(pd) ? PTR_ERR(pd) : 0; +} +device_initcall(add_pcspkr); -- cgit