uio/uio_pci_generic: remove unneeded pci_set_drvdata()

The pci_get_drvdata() was moved during commit ef84928cff
("uio/uio_pci_generic: use device-managed function equivalents").

Storing a private object with pci_set_drvdata() doesn't make sense
since that change, since there is no more pci_get_drvdata() call in the
driver to retrieve the information.

This change removes it.

Fixes: ef84928cff ("uio/uio_pci_generic: use device-managed function equivalents")
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20201123143447.16829-1-alexandru.ardelean@analog.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Alexandru Ardelean 2020-11-23 16:34:47 +02:00 committed by Greg Kroah-Hartman
parent 68d6211971
commit 4849e0eda3
1 changed files with 1 additions and 7 deletions

View File

@ -101,13 +101,7 @@ static int probe(struct pci_dev *pdev,
"no support for interrupts?\n"); "no support for interrupts?\n");
} }
err = devm_uio_register_device(&pdev->dev, &gdev->info); return devm_uio_register_device(&pdev->dev, &gdev->info);
if (err)
return err;
pci_set_drvdata(pdev, gdev);
return 0;
} }
static struct pci_driver uio_pci_driver = { static struct pci_driver uio_pci_driver = {