xref: /linux/arch/x86/kernel/pcspeaker.c (revision 3eb66e91a25497065c5322b1268cbc3953642227)
1b2441318SGreg Kroah-Hartman // SPDX-License-Identifier: GPL-2.0
29a163ed8SThomas Gleixner #include <linux/platform_device.h>
3153dab77SAkinobu Mita #include <linux/err.h>
49a163ed8SThomas Gleixner #include <linux/init.h>
59a163ed8SThomas Gleixner 
add_pcspkr(void)69a163ed8SThomas Gleixner static __init int add_pcspkr(void)
79a163ed8SThomas Gleixner {
89a163ed8SThomas Gleixner 	struct platform_device *pd;
99a163ed8SThomas Gleixner 
10153dab77SAkinobu Mita 	pd = platform_device_register_simple("pcspkr", -1, NULL, 0);
119a163ed8SThomas Gleixner 
12*2397134cSYueHaibing 	return PTR_ERR_OR_ZERO(pd);
139a163ed8SThomas Gleixner }
149a163ed8SThomas Gleixner device_initcall(add_pcspkr);
15