x86: fix arch/x86/kernel/cpu/mtrr/main.c warning
[deliverable/linux.git] / arch / x86 / kernel / pcspeaker.c
CommitLineData
62cc4939
AK
1#include <linux/platform_device.h>
2#include <linux/errno.h>
3#include <linux/init.h>
4
5static __init int add_pcspkr(void)
6{
7 struct platform_device *pd;
8 int ret;
9
10 pd = platform_device_alloc("pcspkr", -1);
11 if (!pd)
12 return -ENOMEM;
13
14 ret = platform_device_add(pd);
15 if (ret)
16 platform_device_put(pd);
17
18 return ret;
19}
20device_initcall(add_pcspkr);
This page took 0.177567 seconds and 5 git commands to generate.