diff options
Diffstat (limited to 'drivers/firewire/fw-device.h')
-rw-r--r-- | drivers/firewire/fw-device.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/firewire/fw-device.h b/drivers/firewire/fw-device.h index 1a3655bea335..ba0e2463e4a7 100644 --- a/drivers/firewire/fw-device.h +++ b/drivers/firewire/fw-device.h | |||
@@ -53,11 +53,18 @@ fw_device(struct device *dev) | |||
53 | return container_of(dev, struct fw_device, device); | 53 | return container_of(dev, struct fw_device, device); |
54 | } | 54 | } |
55 | 55 | ||
56 | static inline int | ||
57 | fw_device_is_shutdown(struct fw_device *device) | ||
58 | { | ||
59 | return atomic_read(&device->state) == FW_DEVICE_SHUTDOWN; | ||
60 | } | ||
61 | |||
56 | struct fw_device *fw_device_get(struct fw_device *device); | 62 | struct fw_device *fw_device_get(struct fw_device *device); |
57 | void fw_device_put(struct fw_device *device); | 63 | void fw_device_put(struct fw_device *device); |
58 | int fw_device_enable_phys_dma(struct fw_device *device); | 64 | int fw_device_enable_phys_dma(struct fw_device *device); |
59 | 65 | ||
60 | void fw_device_cdev_update(struct fw_device *device); | 66 | void fw_device_cdev_update(struct fw_device *device); |
67 | void fw_device_cdev_remove(struct fw_device *device); | ||
61 | 68 | ||
62 | struct fw_device *fw_device_from_devt(dev_t devt); | 69 | struct fw_device *fw_device_from_devt(dev_t devt); |
63 | extern int fw_cdev_major; | 70 | extern int fw_cdev_major; |