aboutsummaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo <cascardo@igalia.com>2024-07-26 15:12:35 -0300
committerTzung-Bi Shih <tzungbi@kernel.org>2024-08-09 20:55:09 +0800
commita1927fbbf74f9f61eb5c6d1414037c97a8d942ab (patch)
treeb0f08bbb3a27bb5fc1870d08b3ca8c298d0e0b98 /mm
parent62be134abf4250474a7a694837064bc783d2b291 (diff)
platform/chrome: cros_ec_typec: add remove driver hook
This allows the driver to be unbound and bound again. Otherwise, when unbinding the driver, there will be leftover sysfs entries. When rebinding the driver, it also ends up touching freed memory when adding to the notifier chain as the old one was not removed and ends up being traversed. Add a remove_new driver hook, which removes the notifier from the chain and unregisters the typec ports. Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@igalia.com> Link: https://lore.kernel.org/r/20240726181235.920335-1-cascardo@igalia.com Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions