kernel: fix bgmac compilation in kernel 5.10
authorRafał Miłecki <rafal@milecki.pl>
Thu, 29 Jul 2021 11:48:41 +0000 (13:48 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 29 Jul 2021 11:53:47 +0000 (13:53 +0200)
It's required since upstream kernel commit 4bdc0d676a64 ("remove
ioremap_nocache and devm_ioremap_nocache").

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/generic/hack-5.10/773-bgmac-add-srab-switch.patch

index 1c1b727ab7d616ec214c3b6cc9b43691ad2017d5..d0de01fe5b847cc7559acdea0999bf6849b0a53d 100644 (file)
@@ -55,7 +55,7 @@ Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
        net_dev->max_mtu = BGMAC_RX_MAX_FRAME_SIZE - ETH_FCS_LEN;
  
 +      if ((bgmac->feature_flags & BGMAC_FEAT_SRAB) && !bgmac_b53_pdata.regs) {
-+              bgmac_b53_pdata.regs = ioremap_nocache(0x18007000, 0x1000);
++              bgmac_b53_pdata.regs = ioremap(0x18007000, 0x1000);
 +
 +              err = platform_device_register(&bgmac_b53_dev);
 +              if (!err)