]> git.karo-electronics.de Git - linux-beck.git/commit
net: davinci: emac: Convert to devm_* api
authorLad, Prabhakar <prabhakar.csengg@gmail.com>
Tue, 25 Jun 2013 15:54:51 +0000 (21:24 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jun 2013 23:52:29 +0000 (16:52 -0700)
commit6892b41d9701283085b655c6086fb57a5d63fa47
treea296c305a01f5dbdeb3b005d800a551ec353b9cb
parent762375766143aba42e74713f8364b4953c40a354
net: davinci: emac: Convert to devm_* api

Use devm_ioremap_resource instead of devm_request_mem_region()/devm_ioremap()
and devm_request_irq() instead of request_irq().

This ensures more consistent error values and simplifies error paths.

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c