aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-device.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-03-07 12:12:44 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-03-09 16:03:09 -0500
commita3aca3dabbcf00f2088d472f27755c29acaa992e (patch)
treec6b23c1d51a7eab5bee4137d344264974ddfc432 /drivers/firewire/fw-device.h
parent344bbc4de14e70d03f09bff04bb7d161b8a0d28c (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.h5
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
60void fw_device_cdev_update(struct fw_device *device); 60void fw_device_cdev_update(struct fw_device *device);
61 61
62struct fw_device *fw_device_from_devt(dev_t devt);
63extern int fw_cdev_major;
64
62struct fw_unit { 65struct fw_unit {
63 struct device device; 66 struct device device;
64 u32 *directory; 67 u32 *directory;