summaryrefslogtreecommitdiffstats
path: root/include/linux/eisa.h
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 /include/linux/eisa.h
parent2bdf914915e98fe82495d05741a57e37f4b604e8 (diff)
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 'include/linux/eisa.h')
-rw-r--r--include/linux/eisa.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/eisa.h b/include/linux/eisa.h
index e61c0be2a45..6925249a5ac 100644
--- a/include/linux/eisa.h
+++ b/include/linux/eisa.h
@@ -78,12 +78,12 @@ static inline void eisa_driver_unregister (struct eisa_driver *edrv) { }
/* Mimics pci.h... */
static inline void *eisa_get_drvdata (struct eisa_device *edev)
{
- return edev->dev.driver_data;
+ return dev_get_drvdata(&edev->dev);
}
static inline void eisa_set_drvdata (struct eisa_device *edev, void *data)
{
- edev->dev.driver_data = data;
+ dev_set_drvdata(&edev->dev, data);
}
/* The EISA root device. There's rumours about machines with multiple