Commit | Line | Data |
---|---|---|
62cc4939 | 1 | #include <linux/platform_device.h> |
153dab77 | 2 | #include <linux/err.h> |
62cc4939 AK |
3 | #include <linux/init.h> |
4 | ||
5 | static __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 | } |
13 | device_initcall(add_pcspkr); |