Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 059e3df7 authored by Badhri Jagan Sridharan's avatar Badhri Jagan Sridharan
Browse files

usb: gadget: Do not disconnect unregistered dev



configfs_composite_unbind sets the gadget data
to null. Therefore, add check in disconnect
function to make sure that cdev is not NULL.
Prints a WARN message if the driver tries to
redundantly disconnect a gadget.

Signed-off-by: default avatarBadhri Jagan Sridharan <badhri@google.com>
Change-Id: I248cb7175d0dd9a51c18053dd39475d8b3284f6d
parent 858c4e49
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment