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

mfd: t7l66xb: 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
3b69f59b 3b87b4eb

-1
-1
drivers/mfd/t7l66xb.c
··· 422 422 iounmap(t7l66xb->scr); 423 423 release_resource(&t7l66xb->rscr); 424 424 mfd_remove_devices(&dev->dev); 425 - platform_set_drvdata(dev, NULL); 426 425 kfree(t7l66xb); 427 426 428 427 return ret;