diff options
Diffstat (limited to 'arch/alpha/kernel/setup.c')
-rw-r--r-- | arch/alpha/kernel/setup.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/alpha/kernel/setup.c b/arch/alpha/kernel/setup.c index dd8769670596..a15e18a00258 100644 --- a/arch/alpha/kernel/setup.c +++ b/arch/alpha/kernel/setup.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include <linux/init.h> | 28 | #include <linux/init.h> |
29 | #include <linux/string.h> | 29 | #include <linux/string.h> |
30 | #include <linux/ioport.h> | 30 | #include <linux/ioport.h> |
31 | #include <linux/platform_device.h> | ||
31 | #include <linux/bootmem.h> | 32 | #include <linux/bootmem.h> |
32 | #include <linux/pci.h> | 33 | #include <linux/pci.h> |
33 | #include <linux/seq_file.h> | 34 | #include <linux/seq_file.h> |
@@ -1478,3 +1479,20 @@ alpha_panic_event(struct notifier_block *this, unsigned long event, void *ptr) | |||
1478 | #endif | 1479 | #endif |
1479 | return NOTIFY_DONE; | 1480 | return NOTIFY_DONE; |
1480 | } | 1481 | } |
1482 | |||
1483 | static __init int add_pcspkr(void) | ||
1484 | { | ||
1485 | struct platform_device *pd; | ||
1486 | int ret; | ||
1487 | |||
1488 | pd = platform_device_alloc("pcspkr", -1); | ||
1489 | if (!pd) | ||
1490 | return -ENOMEM; | ||
1491 | |||
1492 | ret = platform_device_add(pd); | ||
1493 | if (ret) | ||
1494 | platform_device_put(pd); | ||
1495 | |||
1496 | return ret; | ||
1497 | } | ||
1498 | device_initcall(add_pcspkr); | ||