Changeset 17542


Ignore:
Timestamp:
2009-09-08T17:24:06+02:00 (7 years ago)
Author:
florian
Message:

[brcm63xx] prevent gpio-buttons registration failure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c

    r17538 r17542  
    882882        platform_device_register(&bcm63xx_gpio_leds); 
    883883 
    884         bcm63xx_gpio_buttons_data.nbuttons = 1, 
    885         bcm63xx_gpio_buttons_data.buttons = board.reset_btn; 
    886  
    887         platform_device_register(&bcm63xx_gpio_buttons_device); 
     884        if (board.reset_btn) { 
     885                bcm63xx_gpio_buttons_data.nbuttons = 1, 
     886                bcm63xx_gpio_buttons_data.buttons = board.reset_btn; 
     887 
     888                platform_device_register(&bcm63xx_gpio_buttons_device); 
     889        } 
    888890 
    889891        return 0; 
Note: See TracChangeset for help on using the changeset viewer.