aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-08-04 15:21:41 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-08-04 15:21:41 +0000
commitffed9795a4bb04f866abf89960cbd0574fd2daec (patch)
treeef59074478b1e36012f04084a82e28d02f636b9d /target/linux
parentc85677ecc1327515780b8dac25ea3b7dc9c305af (diff)
downloadupstream-ffed9795a4bb04f866abf89960cbd0574fd2daec.tar.gz
upstream-ffed9795a4bb04f866abf89960cbd0574fd2daec.tar.bz2
upstream-ffed9795a4bb04f866abf89960cbd0574fd2daec.zip
[adm5120] add missing buttons device for RB-1xx boards, thanks to Christophe Lucas
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12095 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/adm5120/files/arch/mips/adm5120/boards/mikrotik.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/adm5120/files/arch/mips/adm5120/boards/mikrotik.c b/target/linux/adm5120/files/arch/mips/adm5120/boards/mikrotik.c
index 772b0eba16..54fb8c03b7 100644
--- a/target/linux/adm5120/files/arch/mips/adm5120/boards/mikrotik.c
+++ b/target/linux/adm5120/files/arch/mips/adm5120/boards/mikrotik.c
@@ -86,6 +86,7 @@ static struct mtd_partition rb1xx_nand_parts[] = {
static struct platform_device *rb1xx_devices[] __initdata = {
&adm5120_flash0_device,
&adm5120_nand_device,
+ &adm5120_buttons_device,
};
/*
@@ -132,6 +133,7 @@ static struct platform_device rb153_cf_device = {
static struct platform_device *rb153_devices[] __initdata = {
&adm5120_flash0_device,
&adm5120_nand_device,
+ &adm5120_buttons_device,
&rb153_cf_device,
};
@@ -275,7 +277,7 @@ static void __init rb150_setup(void)
adm5120_buttons_data.nbuttons = 1;
adm5120_buttons[0].desc = "reset button";
- adm5120_buttons[0].gpio = ADM5120_GPIO_PIN1;
+ adm5120_buttons[0].gpio = ADM5120_GPIO_PIN1; /* FIXME: valid? */
adm5120_flash0_data.window_size = 512*1024;