Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

88pm860x_charger: Remove unnecessary platform_set_drvdata()

The driver core clears the driver data to NULL after device_release or on
probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d
(device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is
not needed to manually clear the device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>

authored by

Jingoo Han and committed by
Anton Vorontsov
71c29b3a 6c1d7a1c

-1
-1
drivers/power/88pm860x_charger.c
··· 722 722 struct pm860x_charger_info *info = platform_get_drvdata(pdev); 723 723 int i; 724 724 725 - platform_set_drvdata(pdev, NULL); 726 725 power_supply_unregister(&info->usb); 727 726 free_irq(info->irq[0], info); 728 727 for (i = 0; i < info->irq_nums; i++)