kernel: backport patch making bcm47xxsflash arch independent