Re: [PATCH 2/2] usb: typec: tcpm: remove tcpm dir if no children

2019-07-17 Thread Guenter Roeck
On 7/17/19 1:06 AM, jun...@nxp.com wrote: From: Li Jun If config tcpm as module, module unload will not remove tcpm dir, then the next module load will have problem: the rootdir is NULL but tcpm dir is still there, so tcpm_debugfs_init() will create tcpm dir again with failure, fix it by remove

[PATCH 2/2] usb: typec: tcpm: remove tcpm dir if no children

2019-07-17 Thread jun . li
From: Li Jun If config tcpm as module, module unload will not remove tcpm dir, then the next module load will have problem: the rootdir is NULL but tcpm dir is still there, so tcpm_debugfs_init() will create tcpm dir again with failure, fix it by remove the tcpm dir if no children. Cc: sta...@vg