181-USB-bcma-replace-numbers-with-constants.patch 836 B

123456789101112131415161718192021222324
  1. From f5bc834917a8b1b9487749bdfe8eda52a01967b4 Mon Sep 17 00:00:00 2001
  2. From: Hauke Mehrtens <hauke@hauke-m.de>
  3. Date: Thu, 11 Jun 2015 22:57:36 +0200
  4. Subject: [PATCH] USB: bcma: replace numbers with constants
  5. The constants for these numbers were added long time ago, use them.
  6. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
  7. ---
  8. drivers/usb/host/bcma-hcd.c | 3 ++-
  9. 1 file changed, 2 insertions(+), 1 deletion(-)
  10. --- a/drivers/usb/host/bcma-hcd.c
  11. +++ b/drivers/usb/host/bcma-hcd.c
  12. @@ -233,7 +233,8 @@ static int bcma_hcd_probe(struct bcma_de
  13. /* In AI chips EHCI is addrspace 0, OHCI is 1 */
  14. ohci_addr = dev->addr_s[0];
  15. - if ((chipinfo->id == 0x5357 || chipinfo->id == 0x4749)
  16. + if ((chipinfo->id == BCMA_CHIP_ID_BCM5357 ||
  17. + chipinfo->id == BCMA_CHIP_ID_BCM4749)
  18. && chipinfo->rev == 0)
  19. ohci_addr = 0x18009000;