projects
/
openwrt
/
staging
/
robimarko.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4920f6
)
bcm47xx: Register a GPIODEV platform device to allow GPIO access via /dev/gpio
author
Michael Büsch
<mb@bu3sch.de>
Wed, 19 Mar 2008 10:35:56 +0000
(10:35 +0000)
committer
Michael Büsch
<mb@bu3sch.de>
Wed, 19 Mar 2008 10:35:56 +0000
(10:35 +0000)
SVN-Revision: 10623
target/linux/brcm47xx/files/arch/mips/bcm947xx/setup.c
patch
|
blob
|
history
diff --git
a/target/linux/brcm47xx/files/arch/mips/bcm947xx/setup.c
b/target/linux/brcm47xx/files/arch/mips/bcm947xx/setup.c
index 5856d8fc6959a7491fff046f1cfc37648ef726e4..41d7b0b7587290ec73e32cc7e38d092b38ad7c68 100644
(file)
--- a/
target/linux/brcm47xx/files/arch/mips/bcm947xx/setup.c
+++ b/
target/linux/brcm47xx/files/arch/mips/bcm947xx/setup.c
@@
-226,4
+226,21
@@
void __init plat_mem_setup(void)
board_time_init = bcm47xx_time_init;
}
+static int __init bcm47xx_register_gpiodev(void)
+{
+ static struct resource res = {
+ .start = 0xFFFFFFFF,
+ };
+ struct platform_device *pdev;
+
+ pdev = platform_device_register_simple("GPIODEV", 0, &res, 1);
+ if (!pdev) {
+ printk(KERN_ERR "bcm47xx: GPIODEV init failed\n");
+ return -ENODEV;
+ }
+
+ return 0;
+}
+device_initcall(bcm47xx_register_gpiodev);
+
EXPORT_SYMBOL(ssb);