Skip to content
Snippets Groups Projects
Commit 8a55a734 authored by Yang Yingliang's avatar Yang Yingliang Committed by David S. Miller
Browse files

net: mido: mdio-mux-bcm-iproc: Use devm_platform_get_and_ioremap_resource()


Use devm_platform_get_and_ioremap_resource() to simplify
code and avoid a null-ptr-deref by checking 'res' in it.

Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1f7096f0
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment