Re: [PATCH net v1] net: broadcom: fix a mistake about ioremap resource
From: David Miller
Date: Tue May 05 2020 - 14:12:19 EST
From: Dejin Zheng <zhengdejin5@xxxxxxxxx>
Date: Tue, 5 May 2020 10:03:29 +0800
> 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@xxxxxxxxxxxx>
> Signed-off-by: Dejin Zheng <zhengdejin5@xxxxxxxxx>
Applied, thank you.