]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: usb: Rename usb_find_child to usb_find_emul_child
authorHans de Goede <hdegoede@redhat.com>
Wed, 1 Jul 2015 18:53:01 +0000 (20:53 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:48:57 +0000 (13:48 +0200)
commit4d59f5c28fe1c7b0309861f96e981d05807b0ac0
tree68ba8d6a4b51e74e68191d53435e9a42035f4107
parent5deb9a4414ef6d01c3c532f53b789435a9ba5473
dm: usb: Rename usb_find_child to usb_find_emul_child

Now that we unbind usb devices from usb_stop() usb_find_child() is
only necessary to deal with emulated usb devices.

Rename it to make this clear and add a #ifdef to make it a nop in
other cases.

Note the #ifdef turns usb_find_emul_child() into a nop, rather then not
building it and adding another #ifdef to the caller, this is done this way
because adding a #ifdef to the caller is somewhat hairy.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/usb-uclass.c