]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - arch/x86/kernel/pcspeaker.c
Merge remote-tracking branches 'asoc/topic/ac97', 'asoc/topic/ac97-mfd', 'asoc/topic...
[mirror_ubuntu-focal-kernel.git] / arch / x86 / kernel / pcspeaker.c
CommitLineData
b2441318 1// SPDX-License-Identifier: GPL-2.0
62cc4939 2#include <linux/platform_device.h>
153dab77 3#include <linux/err.h>
62cc4939
AK
4#include <linux/init.h>
5
6static __init int add_pcspkr(void)
7{
8 struct platform_device *pd;
62cc4939 9
153dab77 10 pd = platform_device_register_simple("pcspkr", -1, NULL, 0);
62cc4939 11
153dab77 12 return IS_ERR(pd) ? PTR_ERR(pd) : 0;
62cc4939
AK
13}
14device_initcall(add_pcspkr);