522-MIPS-ath79-add-ath79_wmac_register_simple-helper.patch 562 B

123456789101112131415161718192021
  1. --- a/arch/mips/ath79/dev-wmac.c
  2. +++ b/arch/mips/ath79/dev-wmac.c
  3. @@ -191,3 +191,9 @@ void __init ath79_register_wmac(u8 *cal_
  4. platform_device_register(&ath79_wmac_device);
  5. }
  6. +
  7. +void __init ath79_register_wmac_simple(void)
  8. +{
  9. + ath79_register_wmac(NULL, NULL);
  10. + ath79_wmac_data.eeprom_name = "soc_wmac.eeprom";
  11. +}
  12. --- a/arch/mips/ath79/dev-wmac.h
  13. +++ b/arch/mips/ath79/dev-wmac.h
  14. @@ -13,5 +13,6 @@
  15. #define _ATH79_DEV_WMAC_H
  16. void ath79_register_wmac(u8 *cal_data, u8 *mac_addr);
  17. +void ath79_register_wmac_simple(void);
  18. #endif /* _ATH79_DEV_WMAC_H */