302-extended-platform-devices.patch 727 B

12345678910111213141516171819202122232425
  1. --- a/arch/mips/bcm63xx/boards/board_common.c
  2. +++ b/arch/mips/bcm63xx/boards/board_common.c
  3. @@ -207,6 +207,9 @@ int __init board_register_devices(void)
  4. bcm63xx_hsspi_register();
  5. + if (board.num_devs)
  6. + platform_add_devices(board.devs, board.num_devs);
  7. +
  8. bcm63xx_flash_register();
  9. bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds);
  10. --- a/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
  11. +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
  12. @@ -53,6 +53,10 @@ struct board_info {
  13. /* External PHY reset GPIO flags from gpio.h */
  14. unsigned long ephy_reset_gpio_flags;
  15. +
  16. + /* Additional platform devices */
  17. + struct platform_device **devs;
  18. + unsigned int num_devs;
  19. };
  20. #endif /* ! BOARD_BCM963XX_H_ */