net: ethernet: davinci_emac: Deduplicate bus_find_device() by name matching
authorLukas Wunner <lukas@wunner.de>
Sat, 25 Nov 2017 11:18:19 +0000 (12:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Nov 2017 14:24:08 +0000 (09:24 -0500)
commit3243ff2a05eca0437e633355628a0f3606b931ef
tree2b767118ae55cd15a5a3682bd602178bf9dc3a29
parent87de083857aa269fb171ef0b39696b2888361c58
net: ethernet: davinci_emac: Deduplicate bus_find_device() by name matching

No need to reinvent the wheel, we have bus_find_device_by_name().

Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_emac.c