diff options
| author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-30 17:43:31 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-06-16 00:30:26 -0400 |
| commit | 4b9d0d3b81ec0900971cbe8aba8ba0ae9c08a087 (patch) | |
| tree | 81227afb0893d341dd34255e0d6ba9e4daeb2f4e /include | |
| parent | 2bdf914915e98fe82495d05741a57e37f4b604e8 (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')
| -rw-r--r-- | include/linux/eisa.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/eisa.h b/include/linux/eisa.h index e61c0be2a459..6925249a5ac6 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) { } | |||
| 78 | /* Mimics pci.h... */ | 78 | /* Mimics pci.h... */ |
| 79 | static inline void *eisa_get_drvdata (struct eisa_device *edev) | 79 | static inline void *eisa_get_drvdata (struct eisa_device *edev) |
| 80 | { | 80 | { |
| 81 | return edev->dev.driver_data; | 81 | return dev_get_drvdata(&edev->dev); |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | static inline void eisa_set_drvdata (struct eisa_device *edev, void *data) | 84 | static inline void eisa_set_drvdata (struct eisa_device *edev, void *data) |
| 85 | { | 85 | { |
| 86 | edev->dev.driver_data = data; | 86 | dev_set_drvdata(&edev->dev, data); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | /* The EISA root device. There's rumours about machines with multiple | 89 | /* The EISA root device. There's rumours about machines with multiple |
