OSDN Git Service

net: davinci_mdio: use devm_* api
authorGrygorii Strashko <grygorii.strashko@ti.com>
Wed, 30 Apr 2014 12:23:34 +0000 (15:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2014 20:16:26 +0000 (16:16 -0400)
commit50d0636eefd97f868a5bd85a4c59d60abea30b50
treed7a6913b284a9b0a3db04c154d54805786c213b1
parent6d48f44b7b2af67b33c1ae5994b8f642685c8bc8
net: davinci_mdio: use devm_* api

Use devm_* API for memory allocation and to get device's clock
to simplify driver's code.

Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-and-tested-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_mdio.c