diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2011-08-27 12:53:03 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2012-01-15 12:37:20 -0500 |
commit | 210762268466634ddbfaddb48fdf5181ce4b5f2d (patch) | |
tree | 8c07da360066158aa48f450dfeb593ed9ed76d0f /include/linux/firewire.h | |
parent | 2ca526bf4953380abfe5dff455e356967b239c70 (diff) |
firewire: move fw_device reference counting from drivers to core
fw_unit device drivers invariably need to talk to the fw_unit's parent
(an fw_device) and grandparent (an fw_card). firewire-core already
maintains an fw_card reference for the entire lifetime of an fw_device.
Likewise, let firewire-core maintain an fw_device reference for the
entire lifetime of an fw_unit so that fw_unit drivers don't have to.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'include/linux/firewire.h')
-rw-r--r-- | include/linux/firewire.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/firewire.h b/include/linux/firewire.h index 84ccf8e04fa6..6f1d7385e051 100644 --- a/include/linux/firewire.h +++ b/include/linux/firewire.h | |||
@@ -203,18 +203,6 @@ static inline int fw_device_is_shutdown(struct fw_device *device) | |||
203 | return atomic_read(&device->state) == FW_DEVICE_SHUTDOWN; | 203 | return atomic_read(&device->state) == FW_DEVICE_SHUTDOWN; |
204 | } | 204 | } |
205 | 205 | ||
206 | static inline struct fw_device *fw_device_get(struct fw_device *device) | ||
207 | { | ||
208 | get_device(&device->device); | ||
209 | |||
210 | return device; | ||
211 | } | ||
212 | |||
213 | static inline void fw_device_put(struct fw_device *device) | ||
214 | { | ||
215 | put_device(&device->device); | ||
216 | } | ||
217 | |||
218 | int fw_device_enable_phys_dma(struct fw_device *device); | 206 | int fw_device_enable_phys_dma(struct fw_device *device); |
219 | 207 | ||
220 | /* | 208 | /* |