]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/x86/kernel/pcspeaker.c
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / kernel / pcspeaker.c
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/platform_device.h>
3 #include <linux/err.h>
4 #include <linux/init.h>
5
6 static __init int add_pcspkr(void)
7 {
8 struct platform_device *pd;
9
10 pd = platform_device_register_simple("pcspkr", -1, NULL, 0);
11
12 return IS_ERR(pd) ? PTR_ERR(pd) : 0;
13 }
14 device_initcall(add_pcspkr);