summaryrefslogtreecommitdiffstats
path: root/drivers/eisa/pci_eisa.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-04-30 14:43:31 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-15 21:30:26 -0700
commit4b9d0d3b81ec0900971cbe8aba8ba0ae9c08a087 (patch)
tree81227afb0893d341dd34255e0d6ba9e4daeb2f4e /drivers/eisa/pci_eisa.c
parent2bdf914915e98fe82495d05741a57e37f4b604e8 (diff)
downloadlinux-stable-4b9d0d3b81ec0900971cbe8aba8ba0ae9c08a087.tar.gz
linux-stable-4b9d0d3b81ec0900971cbe8aba8ba0ae9c08a087.tar.bz2
linux-stable-4b9d0d3b81ec0900971cbe8aba8ba0ae9c08a087.zip
eisa: remove driver_data direct access of struct device
In the near future, the driver core is going to not allow direct access to the driver_data pointer in struct device. Instead, the functions dev_get_drvdata() and dev_set_drvdata() should be used. These functions have been around since the beginning, so are backwards compatible with all older kernel versions. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/eisa/pci_eisa.c')
-rw-r--r--drivers/eisa/pci_eisa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/eisa/pci_eisa.c b/drivers/eisa/pci_eisa.c
index 74edb1d0110f..0dd0f633b18d 100644
--- a/drivers/eisa/pci_eisa.c
+++ b/drivers/eisa/pci_eisa.c
@@ -31,11 +31,11 @@ static int __init pci_eisa_init(struct pci_dev *pdev,
}
pci_eisa_root.dev = &pdev->dev;
- pci_eisa_root.dev->driver_data = &pci_eisa_root;
pci_eisa_root.res = pdev->bus->resource[0];
pci_eisa_root.bus_base_addr = pdev->bus->resource[0]->start;
pci_eisa_root.slots = EISA_MAX_SLOTS;
pci_eisa_root.dma_mask = pdev->dma_mask;
+ dev_set_drvdata(pci_eisa_root.dev, &pci_eisa_root);
if (eisa_root_register (&pci_eisa_root)) {
printk (KERN_ERR "pci_eisa : Could not register EISA root\n");