mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 07:00:37 +02:00
bcm47xx: Register a GPIODEV platform device to allow GPIO access via /dev/gpio
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10623 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
a989a4bdd9
commit
89564986c3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user