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

mfd: tc6387xb: 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>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>

authored by

Jingoo Han and committed by
Samuel Ortiz
ae857486 3b69f59b

-1
-1
drivers/mfd/tc6387xb.c
··· 217 217 release_resource(&tc6387xb->rscr); 218 218 clk_disable(tc6387xb->clk32k); 219 219 clk_put(tc6387xb->clk32k); 220 - platform_set_drvdata(dev, NULL); 221 220 kfree(tc6387xb); 222 221 223 222 return 0;