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

misc: pti: remove unnecessary pci_set_drvdata()

The driver core clears the driver data to NULL after device_release
or on probe failure. 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jingoo Han and committed by
Greg Kroah-Hartman
30399bbf b9be2c60

-1
-1
drivers/misc/pti.c
··· 892 892 } 893 893 894 894 iounmap(drv_data->pti_ioaddr); 895 - pci_set_drvdata(pdev, NULL); 896 895 kfree(drv_data); 897 896 pci_release_region(pdev, 1); 898 897 pci_disable_device(pdev);