OSDN Git Service

ptp_ocp: use device_find_any_child() instead of custom approach
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 21 Sep 2022 14:10:05 +0000 (17:10 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 02:30:05 +0000 (19:30 -0700)
commit304843c7ac44be6af5e88756496e8ead01436ebe
tree4195d15fed5faa5954eb7244304639c14facb624
parent05cd823863fd32e9fcd5e8818a0a9070e54cfcc1
ptp_ocp: use device_find_any_child() instead of custom approach

We have already a helper to get the first child device, use it and
drop custom approach.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Vadim Fedorenko <vadfed@fb.com>
Link: https://lore.kernel.org/r/20220921141005.2443-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_ocp.c