Merge tag 'v3.10.103' into update
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / x86 / kernel / pcspeaker.c
CommitLineData
62cc4939 1#include <linux/platform_device.h>
153dab77 2#include <linux/err.h>
62cc4939
AK
3#include <linux/init.h>
4
5static __init int add_pcspkr(void)
6{
7 struct platform_device *pd;
62cc4939 8
153dab77 9 pd = platform_device_register_simple("pcspkr", -1, NULL, 0);
62cc4939 10
153dab77 11 return IS_ERR(pd) ? PTR_ERR(pd) : 0;
62cc4939
AK
12}
13device_initcall(add_pcspkr);