diff options
author | Dejin Zheng <zhengdejin5@gmail.com> | 2020-05-05 10:03:29 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-05 11:11:12 -0700 |
commit | 755f5738ff981769211a0bfac709d514ef5b9f86 (patch) | |
tree | a7b420b6af72f8fdb6a962da72933a3f115a9fff /net/core | |
parent | nfp: abm: fix a memory leak bug (diff) | |
download | linux-755f5738ff981769211a0bfac709d514ef5b9f86.tar.gz linux-755f5738ff981769211a0bfac709d514ef5b9f86.tar.bz2 linux-755f5738ff981769211a0bfac709d514ef5b9f86.zip |
net: broadcom: fix a mistake about ioremap resource
Commit d7a5502b0bb8b ("net: broadcom: convert to
devm_platform_ioremap_resource_byname()") will broke this driver.
idm_base and nicpm_base were optional, after this change, they are
mandatory. it will probe fails with -22 when the dtb doesn't have them
defined. so revert part of this commit and make idm_base and nicpm_base
as optional.
Fixes: d7a5502b0bb8bde ("net: broadcom: convert to devm_platform_ioremap_resource_byname()")
Reported-by: Jonathan Richardson <jonathan.richardson@broadcom.com>
Cc: Scott Branden <scott.branden@broadcom.com>
Cc: Ray Jui <ray.jui@broadcom.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions