add missing buttons device for RB-1xx boards, thanks to Christophe Lucas
authorGabor Juhos <juhosg@openwrt.org>
Mon, 4 Aug 2008 15:21:41 +0000 (15:21 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 4 Aug 2008 15:21:41 +0000 (15:21 +0000)
SVN-Revision: 12095

target/linux/adm5120/files/arch/mips/adm5120/boards/mikrotik.c

index 772b0eba16c9f8f70cb17c71a9a97c9e7e7aae14..54fb8c03b7917dabeaac18f4b78056f852e3d856 100644 (file)
@@ -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;