OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
usb: typec: tps6598x: Fix fault at module removal
[tomoyo/tomoyo-test1.git]
/
drivers
/
usb
/
typec
/
tipd
/
core.c
diff --git
a/drivers/usb/typec/tipd/core.c
b/drivers/usb/typec/tipd/core.c
index
8b075ca
..
438cc40
100644
(file)
--- a/
drivers/usb/typec/tipd/core.c
+++ b/
drivers/usb/typec/tipd/core.c
@@
-886,6
+886,9
@@
static void tps6598x_remove(struct i2c_client *client)
{
struct tps6598x *tps = i2c_get_clientdata(client);
+ if (!client->irq)
+ cancel_delayed_work_sync(&tps->wq_poll);
+
tps6598x_disconnect(tps, 0);
typec_unregister_port(tps->port);
usb_role_switch_put(tps->role_sw);