blob: a311ffcaad165c13032fc8972abc4bab44d251b4 [file] [log] [blame]
Andi Kleen62cc49392007-02-13 13:26:26 +01001#include <linux/platform_device.h>
Akinobu Mita153dab72008-09-21 23:25:40 +09002#include <linux/err.h>
Andi Kleen62cc49392007-02-13 13:26:26 +01003#include <linux/init.h>
4
5static __init int add_pcspkr(void)
6{
7 struct platform_device *pd;
Andi Kleen62cc49392007-02-13 13:26:26 +01008
Akinobu Mita153dab72008-09-21 23:25:40 +09009 pd = platform_device_register_simple("pcspkr", -1, NULL, 0);
Andi Kleen62cc49392007-02-13 13:26:26 +010010
Akinobu Mita153dab72008-09-21 23:25:40 +090011 return IS_ERR(pd) ? PTR_ERR(pd) : 0;
Andi Kleen62cc49392007-02-13 13:26:26 +010012}
13device_initcall(add_pcspkr);