diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-04-03 09:08:57 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-04-03 09:08:57 -0400 |
commit | 76467874b83835129dc454e3a7a8e5d1186101b0 (patch) | |
tree | 162129f0c36c35be4aa323cf00626db0e804c3fc /arch/alpha/kernel/setup.c | |
parent | 8628de0583504138551a05ad44ca388467f0f552 (diff) | |
parent | 6246b6128bbe34d0752f119cf7c5111c85fe481d (diff) |
Merge branch 'master'
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); | ||