hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/power/supply/da9150-charger.c
....@@ -1,14 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * DA9150 Charger Driver
34 *
45 * Copyright (c) 2014 Dialog Semiconductor
56 *
67 * Author: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License as published by the
10
- * Free Software Foundation; either version 2 of the License, or (at your
11
- * option) any later version.
128 */
139
1410 #include <linux/kernel.h>
....@@ -666,6 +662,7 @@
666662
667663 if (!IS_ERR_OR_NULL(charger->usb_phy))
668664 usb_unregister_notifier(charger->usb_phy, &charger->otg_nb);
665
+ cancel_work_sync(&charger->otg_work);
669666
670667 power_supply_unregister(charger->battery);
671668 power_supply_unregister(charger->usb);