Commit dd04defd authored by Chuhong Yuan's avatar Chuhong Yuan Committed by Sebastian Reichel
Browse files

power: supply: pda_power: add missed usb_unregister_notifier



The driver forgets to unregister the notifier in remove.
Add the call to fix it.

Signed-off-by: default avatarChuhong Yuan <hslester96@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent b0d0d3de
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -429,6 +429,10 @@ wrongid:

static int pda_power_remove(struct platform_device *pdev)
{
#if IS_ENABLED(CONFIG_USB_PHY)
	if (!IS_ERR_OR_NULL(transceiver) && pdata->use_otg_notifier)
		usb_unregister_notifier(transceiver, &otg_nb);
#endif
	if (pdata->is_usb_online && usb_irq)
		free_irq(usb_irq->start, pda_psy_usb);
	if (pdata->is_ac_online && ac_irq)