]> git.baikalelectronics.ru Git - kernel.git/commit
usb: ulpi: Move of_node_put to ulpi_dev_release
authorSean Anderson <sean.anderson@seco.com>
Thu, 27 Jan 2022 19:00:02 +0000 (14:00 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Jan 2022 13:11:16 +0000 (14:11 +0100)
commit9f60abbd46bd1c8e153a5c7a165b501c4ce91a5d
tree098a478271cedfd0250eef98d2eb402d7bfa443b
parent9c0495dbae0321419c711097d2e7df7d9594d862
usb: ulpi: Move of_node_put to ulpi_dev_release

Drivers are not unbound from the device when ulpi_unregister_interface
is called. Move of_node-freeing code to ulpi_dev_release which is called
only after all users are gone.

Fixes: 7e391dcc7bdc ("usb: ulpi: Support device discovery via DT")
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Link: https://lore.kernel.org/r/20220127190004.1446909-2-sean.anderson@seco.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/common/ulpi.c