-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 56952 b: refs/heads/master c: e971290 h: refs/heads/master v: v3
- Loading branch information
Ralf Baechle
authored and
Jeff Garzik
committed
May 24, 2007
1 parent
3f01368
commit 7a90e75
Showing
4 changed files
with
67 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 73815538e642de66a5607cc16d13004ecb1a3062 | ||
refs/heads/master: e971290133d8151c468cd70206fedc92648feb58 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <linux/init.h> | ||
#include <linux/platform_device.h> | ||
|
||
static __init int meth_devinit(void) | ||
{ | ||
struct platform_device *pd; | ||
int ret; | ||
|
||
pd = platform_device_alloc("meth", -1); | ||
if (!pd) | ||
return -ENOMEM; | ||
|
||
ret = platform_device_add(pd); | ||
if (ret) | ||
platform_device_put(pd); | ||
|
||
return ret; | ||
} | ||
|
||
device_initcall(meth_devinit); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters