uio: uio_aec: remove unnecessary pci_set_drvdata()
PATCH 1/5 uio: uio_aec: 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.
--- drivers/uio/uio_aec.c | 1 - 1 file changed, 1 deletion(-)
drivers/uio/uio_aec.c +0 -1
@@ -147,7 +147,6 @@ static void remove(struct pci_dev *pdev)uio_unregister_device (info);pci_release_regions (pdev);pci_disable_device (pdev); -pci_set_drvdata (pdev,NULL );iounmap (info->priv);kfree (info);
Signature · 1 line
1.7.10.4
PATCH 2/5 uio: uio_cif: 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.
--- drivers/uio/uio_cif.c | 1 - 1 file changed, 1 deletion(-)
drivers/uio/uio_cif.c +0 -1
@@ -106,7 +106,6 @@ static void hilscher_pci_remove(struct pci_dev *dev)uio_unregister_device (info);pci_release_regions (dev);pci_disable_device (dev); -pci_set_drvdata (dev,NULL );iounmap (info->mem[0 ].internal_addr);kfree (info);
Signature · 1 line
1.7.10.4
PATCH 3/5 uio: uio_mf624: remove unnecessary pci_set_drvdata()
In reply to Jingoo HanThe 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.
--- drivers/uio/uio_mf624.c | 1 - 1 file changed, 1 deletion(-)
drivers/uio/uio_mf624.c +0 -1
@@ -220,7 +220,6 @@ static void mf624_pci_remove(struct pci_dev *dev)uio_unregister_device (info);pci_release_regions (dev);pci_disable_device (dev); -pci_set_drvdata (dev,NULL );iounmap (info->mem[0 ].internal_addr);iounmap (info->mem[1 ].internal_addr);
Signature · 1 line
1.7.10.4
PATCH 4/5 uio: uio_netx: remove unnecessary pci_set_drvdata()
In reply to Jingoo HanThe 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.
--- drivers/uio/uio_netx.c | 1 - 1 file changed, 1 deletion(-)
drivers/uio/uio_netx.c +0 -1
@@ -127,7 +127,6 @@ static void netx_pci_remove(struct pci_dev *dev)uio_unregister_device (info);pci_release_regions (dev);pci_disable_device (dev); -pci_set_drvdata (dev,NULL );iounmap (info->mem[0 ].internal_addr);kfree (info);
Signature · 1 line
1.7.10.4
PATCH 5/5 uio: uio_sercos3: remove unnecessary pci_set_drvdata()
In reply to Jingoo HanThe 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.
--- drivers/uio/uio_sercos3.c | 1 - 1 file changed, 1 deletion(-)
drivers/uio/uio_sercos3.c +0 -1
@@ -188,7 +188,6 @@ static void sercos3_pci_remove(struct pci_dev *dev)uio_unregister_device (info);pci_release_regions (dev);pci_disable_device (dev); -pci_set_drvdata (dev,NULL );for (i =0 ; i <5 ; i++) {if (info->mem[i].internal_addr)iounmap (info->mem[i].internal_addr);
Signature · 1 line
1.7.10.4