]> Git Repo - linux.git/commit
net: broadcom: fix a mistake about ioremap resource
authorDejin Zheng <[email protected]>
Tue, 5 May 2020 02:03:29 +0000 (10:03 +0800)
committerDavid S. Miller <[email protected]>
Tue, 5 May 2020 18:11:12 +0000 (11:11 -0700)
commit755f5738ff981769211a0bfac709d514ef5b9f86
treea7b420b6af72f8fdb6a962da72933a3f115a9fff
parentbd4af432cc71b5fbfe4833510359a6ad3ada250d
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 <[email protected]>
Cc: Scott Branden <[email protected]>
Cc: Ray Jui <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: David S. Miller <[email protected]>
Signed-off-by: Dejin Zheng <[email protected]>
Acked-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/broadcom/bgmac-platform.c
This page took 0.056625 seconds and 4 git commands to generate.