forked from luck/tmp_suning_uos_patched
2a17bd9f52
commit 0a907ee9d95e3ac35eb023d71f29eae0aaa52d1b upstream.
of_node_put should always be called on device nodes gotten from
of_get_*. Additionally, it should only be called after there are no
remaining users. To address the first issue, call of_node_put if later
steps in ulpi_register fail. To address the latter, call put_device if
device_register fails, which will call ulpi_dev_release if necessary.
Fixes:
|
||
---|---|---|
.. | ||
common.c | ||
common.h | ||
debug.c | ||
Kconfig | ||
led.c | ||
Makefile | ||
ulpi.c | ||
usb-conn-gpio.c | ||
usb-otg-fsm.c |