diff options
author | Kristian Høgsberg <krh@redhat.com> | 2007-03-07 12:12:44 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-03-09 16:03:09 -0500 |
commit | a3aca3dabbcf00f2088d472f27755c29acaa992e (patch) | |
tree | c6b23c1d51a7eab5bee4137d344264974ddfc432 /drivers/firewire/fw-device.h | |
parent | 344bbc4de14e70d03f09bff04bb7d161b8a0d28c (diff) |
firewire: Switch cdev code over to use register_chrdev and keep a list of devices.
The old mechanism kept a struct cdev for each fw device, but fops->release
would reference this struct after the device got freed in some cases.
Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-device.h')
-rw-r--r-- | drivers/firewire/fw-device.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/firewire/fw-device.h b/drivers/firewire/fw-device.h index 4f731c2b121c..1a3655bea335 100644 --- a/drivers/firewire/fw-device.h +++ b/drivers/firewire/fw-device.h | |||
@@ -39,7 +39,7 @@ struct fw_device { | |||
39 | int generation; | 39 | int generation; |
40 | struct fw_card *card; | 40 | struct fw_card *card; |
41 | struct device device; | 41 | struct device device; |
42 | struct cdev cdev; | 42 | struct list_head link; |
43 | struct list_head client_list; | 43 | struct list_head client_list; |
44 | __be32 *config_rom; | 44 | __be32 *config_rom; |
45 | size_t config_rom_length; | 45 | size_t config_rom_length; |
@@ -59,6 +59,9 @@ int fw_device_enable_phys_dma(struct fw_device *device); | |||
59 | 59 | ||
60 | void fw_device_cdev_update(struct fw_device *device); | 60 | void fw_device_cdev_update(struct fw_device *device); |
61 | 61 | ||
62 | struct fw_device *fw_device_from_devt(dev_t devt); | ||
63 | extern int fw_cdev_major; | ||
64 | |||
62 | struct fw_unit { | 65 | struct fw_unit { |
63 | struct device device; | 66 | struct device device; |
64 | u32 *directory; | 67 | u32 *directory; |