]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: stmicro: stmmac: use devm_ioremap_resource()
authorSilviu-Mihai Popescu <silviupopescu1990@gmail.com>
Thu, 11 Apr 2013 09:52:13 +0000 (09:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Apr 2013 20:21:58 +0000 (16:21 -0400)
commit3851f011f934e187197d9c8ddf46f88ee803a6d1
treec61607ff8a7b90681bcdd3beccfe9c1a4a10fa66
parent5b79ae00514a0eeaae013fc4ebbd27321047d1ac
net: ethernet: stmicro: stmmac: use devm_ioremap_resource()

Convert  use of devm_request_and_ioremap() to the newly introduced
devm_ioremap_resource() which provides more consistent error handling.

devm_ioremap_resource() provides its own error messages so all explicit
error messages can be removed from the failure code paths.

This was found with coccinelle.

Signed-off-by: Silviu-Mihai Popescu <silviupopescu1990@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c