diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2002-11-29 09:28:13 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2002-11-29 09:28:13 -0800 |
| commit | 412f39a58350dc99e05bd283b5c88cd378ad444b (patch) | |
| tree | 7454e0e17ff47cdc717d3aec83dd00d9dceec5f4 /include/linux | |
| parent | 19652e26a6ad17bb54b3d882041ed24cf6dceaeb (diff) | |
PCI: changed pci_?et_drvdata to use the generic driver model functions
instead of accessing the data directly.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/pci.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 3226857c6269..a26b3fac2128 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -747,17 +747,17 @@ static inline int pci_module_init(struct pci_driver *drv) pci_resource_start((dev),(bar)) + 1)) /* Similar to the helpers above, these manipulate per-pci_dev - * driver-specific data. Currently stored as pci_dev::driver_data, - * a void pointer, but it is not present on older kernels. + * driver-specific data. They are really just a wrapper around + * the generic device structure functions of these calls. */ static inline void *pci_get_drvdata (struct pci_dev *pdev) { - return pdev->dev.driver_data; + return dev_get_drvdata(&pdev->dev); } static inline void pci_set_drvdata (struct pci_dev *pdev, void *data) { - pdev->dev.driver_data = data; + dev_set_drvdata(&pdev->dev, data); } /* |
