Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110378
b: refs/heads/master
c: 153dab7
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Ingo Molnar committed Sep 22, 2008
1 parent db5928c commit 3251fc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 279b0bbba2bb647348ad90e183b3960aa99eccfd
refs/heads/master: 153dab77e228931f3aff74f21b762927ac710ca7
13 changes: 3 additions & 10 deletions trunk/arch/x86/kernel/pcspeaker.c
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
#include <linux/platform_device.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/init.h>

static __init int add_pcspkr(void)
{
struct platform_device *pd;
int ret;

pd = platform_device_alloc("pcspkr", -1);
if (!pd)
return -ENOMEM;
pd = platform_device_register_simple("pcspkr", -1, NULL, 0);

ret = platform_device_add(pd);
if (ret)
platform_device_put(pd);

return ret;
return IS_ERR(pd) ? PTR_ERR(pd) : 0;
}
device_initcall(add_pcspkr);

0 comments on commit 3251fc7

Please sign in to comment.