Commit b8d9a504 authored by Sachin Kamat's avatar Sachin Kamat Committed by Herbert Xu

crypto: ccp - Remove redundant dev_set_drvdata

Driver core sets it to NULL upon probe failure or release.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 2be9d96b
...@@ -247,7 +247,6 @@ static int ccp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -247,7 +247,6 @@ static int ccp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
e_device: e_device:
pci_disable_device(pdev); pci_disable_device(pdev);
dev_set_drvdata(dev, NULL);
e_regions: e_regions:
pci_release_regions(pdev); pci_release_regions(pdev);
...@@ -273,7 +272,6 @@ static void ccp_pci_remove(struct pci_dev *pdev) ...@@ -273,7 +272,6 @@ static void ccp_pci_remove(struct pci_dev *pdev)
pci_iounmap(pdev, ccp->io_map); pci_iounmap(pdev, ccp->io_map);
pci_disable_device(pdev); pci_disable_device(pdev);
dev_set_drvdata(dev, NULL);
pci_release_regions(pdev); pci_release_regions(pdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment