Blame view
arch/x86/kernel/pcspeaker.c
282 Bytes
62cc49396 [PATCH] x86: Unif... |
1 |
#include <linux/platform_device.h> |
153dab77e x86: use platform... |
2 |
#include <linux/err.h> |
62cc49396 [PATCH] x86: Unif... |
3 4 5 6 7 |
#include <linux/init.h> static __init int add_pcspkr(void) { struct platform_device *pd; |
62cc49396 [PATCH] x86: Unif... |
8 |
|
153dab77e x86: use platform... |
9 |
pd = platform_device_register_simple("pcspkr", -1, NULL, 0); |
62cc49396 [PATCH] x86: Unif... |
10 |
|
153dab77e x86: use platform... |
11 |
return IS_ERR(pd) ? PTR_ERR(pd) : 0; |
62cc49396 [PATCH] x86: Unif... |
12 13 |
} device_initcall(add_pcspkr); |