Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / arch / x86 / kernel / pcspeaker.c
blobda5190a1ea168df7ab903985a2a4dadd2c0665b0
1 // SPDX-License-Identifier: GPL-2.0
2 #include <linux/platform_device.h>
3 #include <linux/err.h>
4 #include <linux/init.h>
6 static __init int add_pcspkr(void)
8 struct platform_device *pd;
10 pd = platform_device_register_simple("pcspkr", -1, NULL, 0);
12 return IS_ERR(pd) ? PTR_ERR(pd) : 0;
14 device_initcall(add_pcspkr);