nvmem: core: Deduplicate bus_find_device() by name matching
authorLukas Wunner <lukas@wunner.de>
Fri, 15 Dec 2017 14:06:04 +0000 (14:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2017 09:39:33 +0000 (10:39 +0100)
commit9f3044c38c84989c37a6f29683a8899a2980341d
treeb4c88cc685b5268f36851196d115158e25633c2b
parent3f827245463a57f5ef64a665e1ca64eed0da00a5
nvmem: core: Deduplicate bus_find_device() by name matching

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

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c