aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire/fw-device.c')
-rw-r--r--drivers/firewire/fw-device.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/firewire/fw-device.c b/drivers/firewire/fw-device.c
index 238acac5badb..65d84dd6c1de 100644
--- a/drivers/firewire/fw-device.c
+++ b/drivers/firewire/fw-device.c
@@ -22,6 +22,8 @@
22#include <linux/delay.h> 22#include <linux/delay.h>
23#include <linux/device.h> 23#include <linux/device.h>
24#include <linux/errno.h> 24#include <linux/errno.h>
25#include <linux/firewire.h>
26#include <linux/firewire-constants.h>
25#include <linux/idr.h> 27#include <linux/idr.h>
26#include <linux/jiffies.h> 28#include <linux/jiffies.h>
27#include <linux/kobject.h> 29#include <linux/kobject.h>
@@ -39,9 +41,7 @@
39#include <asm/byteorder.h> 41#include <asm/byteorder.h>
40#include <asm/system.h> 42#include <asm/system.h>
41 43
42#include "fw-device.h" 44#include "core.h"
43#include "fw-topology.h"
44#include "fw-transaction.h"
45 45
46void fw_csr_iterator_init(struct fw_csr_iterator *ci, u32 * p) 46void fw_csr_iterator_init(struct fw_csr_iterator *ci, u32 * p)
47{ 47{
@@ -94,8 +94,9 @@ static int fw_unit_match(struct device *dev, struct device_driver *drv)
94 return 0; 94 return 0;
95 95
96 device = fw_device(unit->device.parent); 96 device = fw_device(unit->device.parent);
97 id = container_of(drv, struct fw_driver, driver)->id_table;
97 98
98 for (id = fw_driver(drv)->id_table; id->match_flags != 0; id++) { 99 for (; id->match_flags != 0; id++) {
99 if (match_unit_directory(unit->directory, id->match_flags, id)) 100 if (match_unit_directory(unit->directory, id->match_flags, id))
100 return 1; 101 return 1;
101 102