diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-06-04 15:09:38 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-06-05 10:26:17 -0400 |
commit | e8ca97021c8eb127bb04aec4e2420e1d66be371d (patch) | |
tree | bc9e6c3597eff48632f57903e5cd0d3456fe8d7a /drivers/firewire | |
parent | 3dcdc50079bc2c9dbc6524518976353f743f7ec8 (diff) |
firewire: clean up includes
Include required headers which were only indirectly included.
Remove unused includes and an unused constant.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/fw-card.c | 15 | ||||
-rw-r--r-- | drivers/firewire/fw-device.c | 3 | ||||
-rw-r--r-- | drivers/firewire/fw-iso.c | 2 | ||||
-rw-r--r-- | drivers/firewire/fw-ohci.c | 7 | ||||
-rw-r--r-- | drivers/firewire/fw-sbp2.c | 12 | ||||
-rw-r--r-- | drivers/firewire/fw-topology.c | 16 | ||||
-rw-r--r-- | drivers/firewire/fw-transaction.c | 28 |
7 files changed, 61 insertions, 22 deletions
diff --git a/drivers/firewire/fw-card.c b/drivers/firewire/fw-card.c index 8b8c8c22f0fc..b6f55e262e7f 100644 --- a/drivers/firewire/fw-card.c +++ b/drivers/firewire/fw-card.c | |||
@@ -16,18 +16,27 @@ | |||
16 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 16 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include <linux/bug.h> | ||
19 | #include <linux/completion.h> | 20 | #include <linux/completion.h> |
20 | #include <linux/crc-itu-t.h> | 21 | #include <linux/crc-itu-t.h> |
21 | #include <linux/delay.h> | ||
22 | #include <linux/device.h> | 22 | #include <linux/device.h> |
23 | #include <linux/errno.h> | 23 | #include <linux/errno.h> |
24 | #include <linux/jiffies.h> | ||
25 | #include <linux/kernel.h> | ||
24 | #include <linux/kref.h> | 26 | #include <linux/kref.h> |
27 | #include <linux/list.h> | ||
25 | #include <linux/module.h> | 28 | #include <linux/module.h> |
26 | #include <linux/mutex.h> | 29 | #include <linux/mutex.h> |
30 | #include <linux/spinlock.h> | ||
31 | #include <linux/timer.h> | ||
32 | #include <linux/workqueue.h> | ||
33 | |||
34 | #include <asm/atomic.h> | ||
35 | #include <asm/byteorder.h> | ||
27 | 36 | ||
28 | #include "fw-transaction.h" | ||
29 | #include "fw-topology.h" | ||
30 | #include "fw-device.h" | 37 | #include "fw-device.h" |
38 | #include "fw-topology.h" | ||
39 | #include "fw-transaction.h" | ||
31 | 40 | ||
32 | int fw_compute_block_crc(u32 *block) | 41 | int fw_compute_block_crc(u32 *block) |
33 | { | 42 | { |
diff --git a/drivers/firewire/fw-device.c b/drivers/firewire/fw-device.c index 7d2f6135e009..238acac5badb 100644 --- a/drivers/firewire/fw-device.c +++ b/drivers/firewire/fw-device.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/kobject.h> | 27 | #include <linux/kobject.h> |
28 | #include <linux/list.h> | 28 | #include <linux/list.h> |
29 | #include <linux/mod_devicetable.h> | 29 | #include <linux/mod_devicetable.h> |
30 | #include <linux/module.h> | ||
30 | #include <linux/mutex.h> | 31 | #include <linux/mutex.h> |
31 | #include <linux/rwsem.h> | 32 | #include <linux/rwsem.h> |
32 | #include <linux/semaphore.h> | 33 | #include <linux/semaphore.h> |
@@ -34,6 +35,8 @@ | |||
34 | #include <linux/string.h> | 35 | #include <linux/string.h> |
35 | #include <linux/workqueue.h> | 36 | #include <linux/workqueue.h> |
36 | 37 | ||
38 | #include <asm/atomic.h> | ||
39 | #include <asm/byteorder.h> | ||
37 | #include <asm/system.h> | 40 | #include <asm/system.h> |
38 | 41 | ||
39 | #include "fw-device.h" | 42 | #include "fw-device.h" |
diff --git a/drivers/firewire/fw-iso.c b/drivers/firewire/fw-iso.c index 2baf1007253e..0ff3e9c42eb1 100644 --- a/drivers/firewire/fw-iso.c +++ b/drivers/firewire/fw-iso.c | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <linux/spinlock.h> | 28 | #include <linux/spinlock.h> |
29 | #include <linux/vmalloc.h> | 29 | #include <linux/vmalloc.h> |
30 | 30 | ||
31 | #include <asm/byteorder.h> | ||
32 | |||
31 | #include "fw-topology.h" | 33 | #include "fw-topology.h" |
32 | #include "fw-transaction.h" | 34 | #include "fw-transaction.h" |
33 | 35 | ||
diff --git a/drivers/firewire/fw-ohci.c b/drivers/firewire/fw-ohci.c index 1b6590f92543..d296d12909d6 100644 --- a/drivers/firewire/fw-ohci.c +++ b/drivers/firewire/fw-ohci.c | |||
@@ -20,18 +20,24 @@ | |||
20 | 20 | ||
21 | #include <linux/compiler.h> | 21 | #include <linux/compiler.h> |
22 | #include <linux/delay.h> | 22 | #include <linux/delay.h> |
23 | #include <linux/device.h> | ||
23 | #include <linux/dma-mapping.h> | 24 | #include <linux/dma-mapping.h> |
25 | #include <linux/firewire-constants.h> | ||
24 | #include <linux/gfp.h> | 26 | #include <linux/gfp.h> |
25 | #include <linux/init.h> | 27 | #include <linux/init.h> |
26 | #include <linux/interrupt.h> | 28 | #include <linux/interrupt.h> |
29 | #include <linux/io.h> | ||
27 | #include <linux/kernel.h> | 30 | #include <linux/kernel.h> |
31 | #include <linux/list.h> | ||
28 | #include <linux/mm.h> | 32 | #include <linux/mm.h> |
29 | #include <linux/module.h> | 33 | #include <linux/module.h> |
30 | #include <linux/moduleparam.h> | 34 | #include <linux/moduleparam.h> |
31 | #include <linux/pci.h> | 35 | #include <linux/pci.h> |
32 | #include <linux/spinlock.h> | 36 | #include <linux/spinlock.h> |
37 | #include <linux/string.h> | ||
33 | 38 | ||
34 | #include <asm/atomic.h> | 39 | #include <asm/atomic.h> |
40 | #include <asm/byteorder.h> | ||
35 | #include <asm/page.h> | 41 | #include <asm/page.h> |
36 | #include <asm/system.h> | 42 | #include <asm/system.h> |
37 | 43 | ||
@@ -232,7 +238,6 @@ static inline struct fw_ohci *fw_ohci(struct fw_card *card) | |||
232 | #define OHCI1394_MAX_AT_RESP_RETRIES 0x2 | 238 | #define OHCI1394_MAX_AT_RESP_RETRIES 0x2 |
233 | #define OHCI1394_MAX_PHYS_RESP_RETRIES 0x8 | 239 | #define OHCI1394_MAX_PHYS_RESP_RETRIES 0x8 |
234 | 240 | ||
235 | #define FW_OHCI_MAJOR 240 | ||
236 | #define OHCI1394_REGISTER_SIZE 0x800 | 241 | #define OHCI1394_REGISTER_SIZE 0x800 |
237 | #define OHCI_LOOP_COUNT 500 | 242 | #define OHCI_LOOP_COUNT 500 |
238 | #define OHCI1394_PCI_HCI_Control 0x40 | 243 | #define OHCI1394_PCI_HCI_Control 0x40 |
diff --git a/drivers/firewire/fw-sbp2.c b/drivers/firewire/fw-sbp2.c index 2a707754532b..027b91f4a6e7 100644 --- a/drivers/firewire/fw-sbp2.c +++ b/drivers/firewire/fw-sbp2.c | |||
@@ -30,18 +30,27 @@ | |||
30 | 30 | ||
31 | #include <linux/blkdev.h> | 31 | #include <linux/blkdev.h> |
32 | #include <linux/bug.h> | 32 | #include <linux/bug.h> |
33 | #include <linux/completion.h> | ||
33 | #include <linux/delay.h> | 34 | #include <linux/delay.h> |
34 | #include <linux/device.h> | 35 | #include <linux/device.h> |
35 | #include <linux/dma-mapping.h> | 36 | #include <linux/dma-mapping.h> |
37 | #include <linux/firewire-constants.h> | ||
38 | #include <linux/init.h> | ||
39 | #include <linux/jiffies.h> | ||
36 | #include <linux/kernel.h> | 40 | #include <linux/kernel.h> |
41 | #include <linux/kref.h> | ||
42 | #include <linux/list.h> | ||
37 | #include <linux/mod_devicetable.h> | 43 | #include <linux/mod_devicetable.h> |
38 | #include <linux/module.h> | 44 | #include <linux/module.h> |
39 | #include <linux/moduleparam.h> | 45 | #include <linux/moduleparam.h> |
40 | #include <linux/scatterlist.h> | 46 | #include <linux/scatterlist.h> |
47 | #include <linux/slab.h> | ||
48 | #include <linux/spinlock.h> | ||
41 | #include <linux/string.h> | 49 | #include <linux/string.h> |
42 | #include <linux/stringify.h> | 50 | #include <linux/stringify.h> |
43 | #include <linux/timer.h> | ||
44 | #include <linux/workqueue.h> | 51 | #include <linux/workqueue.h> |
52 | |||
53 | #include <asm/byteorder.h> | ||
45 | #include <asm/system.h> | 54 | #include <asm/system.h> |
46 | 55 | ||
47 | #include <scsi/scsi.h> | 56 | #include <scsi/scsi.h> |
@@ -50,7 +59,6 @@ | |||
50 | #include <scsi/scsi_host.h> | 59 | #include <scsi/scsi_host.h> |
51 | 60 | ||
52 | #include "fw-device.h" | 61 | #include "fw-device.h" |
53 | #include "fw-topology.h" | ||
54 | #include "fw-transaction.h" | 62 | #include "fw-transaction.h" |
55 | 63 | ||
56 | /* | 64 | /* |
diff --git a/drivers/firewire/fw-topology.c b/drivers/firewire/fw-topology.c index d0deecc4de93..6d0ea1bb7e23 100644 --- a/drivers/firewire/fw-topology.c +++ b/drivers/firewire/fw-topology.c | |||
@@ -18,13 +18,21 @@ | |||
18 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <linux/module.h> | 21 | #include <linux/bug.h> |
22 | #include <linux/wait.h> | ||
23 | #include <linux/errno.h> | 22 | #include <linux/errno.h> |
24 | #include <asm/bug.h> | 23 | #include <linux/jiffies.h> |
24 | #include <linux/kernel.h> | ||
25 | #include <linux/list.h> | ||
26 | #include <linux/module.h> | ||
27 | #include <linux/slab.h> | ||
28 | #include <linux/spinlock.h> | ||
29 | #include <linux/string.h> | ||
30 | |||
31 | #include <asm/atomic.h> | ||
25 | #include <asm/system.h> | 32 | #include <asm/system.h> |
26 | #include "fw-transaction.h" | 33 | |
27 | #include "fw-topology.h" | 34 | #include "fw-topology.h" |
35 | #include "fw-transaction.h" | ||
28 | 36 | ||
29 | #define SELF_ID_PHY_ID(q) (((q) >> 24) & 0x3f) | 37 | #define SELF_ID_PHY_ID(q) (((q) >> 24) & 0x3f) |
30 | #define SELF_ID_EXTENDED(q) (((q) >> 23) & 0x01) | 38 | #define SELF_ID_EXTENDED(q) (((q) >> 23) & 0x01) |
diff --git a/drivers/firewire/fw-transaction.c b/drivers/firewire/fw-transaction.c index 283dac6d327d..7008214e3336 100644 --- a/drivers/firewire/fw-transaction.c +++ b/drivers/firewire/fw-transaction.c | |||
@@ -18,24 +18,28 @@ | |||
18 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <linux/bug.h> | ||
21 | #include <linux/completion.h> | 22 | #include <linux/completion.h> |
23 | #include <linux/device.h> | ||
24 | #include <linux/errno.h> | ||
25 | #include <linux/firewire-constants.h> | ||
26 | #include <linux/fs.h> | ||
27 | #include <linux/init.h> | ||
22 | #include <linux/idr.h> | 28 | #include <linux/idr.h> |
29 | #include <linux/jiffies.h> | ||
23 | #include <linux/kernel.h> | 30 | #include <linux/kernel.h> |
24 | #include <linux/kref.h> | ||
25 | #include <linux/module.h> | ||
26 | #include <linux/mutex.h> | ||
27 | #include <linux/init.h> | ||
28 | #include <linux/interrupt.h> | ||
29 | #include <linux/pci.h> | ||
30 | #include <linux/delay.h> | ||
31 | #include <linux/poll.h> | ||
32 | #include <linux/list.h> | 31 | #include <linux/list.h> |
33 | #include <linux/kthread.h> | 32 | #include <linux/module.h> |
34 | #include <asm/uaccess.h> | 33 | #include <linux/slab.h> |
34 | #include <linux/spinlock.h> | ||
35 | #include <linux/string.h> | ||
36 | #include <linux/timer.h> | ||
37 | #include <linux/types.h> | ||
38 | |||
39 | #include <asm/byteorder.h> | ||
35 | 40 | ||
41 | #include "fw-device.h" /* for fw_device_ops */ | ||
36 | #include "fw-transaction.h" | 42 | #include "fw-transaction.h" |
37 | #include "fw-topology.h" | ||
38 | #include "fw-device.h" | ||
39 | 43 | ||
40 | #define HEADER_PRI(pri) ((pri) << 0) | 44 | #define HEADER_PRI(pri) ((pri) << 0) |
41 | #define HEADER_TCODE(tcode) ((tcode) << 4) | 45 | #define HEADER_TCODE(tcode) ((tcode) << 4) |