aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-ohci.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-01-22 13:17:37 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-03-09 16:02:40 -0500
commit95688e97cdf7453cde22eaa73cc2ab6b113c1853 (patch)
tree187d857b123ceef85af5feb650a8143c08ec592d /drivers/firewire/fw-ohci.c
parent21ebcd1224d05c8673053e1e93ab9ec7ef3e0b84 (diff)
firewire: cleanups
This patch contains the following cleanups: - "extern inline" -> "static inline" - fw-topology.c: make struct fw_node_create static Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-ohci.c')
-rw-r--r--drivers/firewire/fw-ohci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/firewire/fw-ohci.c b/drivers/firewire/fw-ohci.c
index d3750a2692e9..6eff7996c1a7 100644
--- a/drivers/firewire/fw-ohci.c
+++ b/drivers/firewire/fw-ohci.c
@@ -147,7 +147,7 @@ struct fw_ohci {
147 struct iso_context *ir_context_list; 147 struct iso_context *ir_context_list;
148}; 148};
149 149
150extern inline struct fw_ohci *fw_ohci(struct fw_card *card) 150static inline struct fw_ohci *fw_ohci(struct fw_card *card)
151{ 151{
152 return container_of(card, struct fw_ohci, card); 152 return container_of(card, struct fw_ohci, card);
153} 153}
@@ -174,17 +174,17 @@ extern inline struct fw_ohci *fw_ohci(struct fw_card *card)
174 174
175static char ohci_driver_name[] = KBUILD_MODNAME; 175static char ohci_driver_name[] = KBUILD_MODNAME;
176 176
177extern inline void reg_write(const struct fw_ohci *ohci, int offset, u32 data) 177static inline void reg_write(const struct fw_ohci *ohci, int offset, u32 data)
178{ 178{
179 writel(data, ohci->registers + offset); 179 writel(data, ohci->registers + offset);
180} 180}
181 181
182extern inline u32 reg_read(const struct fw_ohci *ohci, int offset) 182static inline u32 reg_read(const struct fw_ohci *ohci, int offset)
183{ 183{
184 return readl(ohci->registers + offset); 184 return readl(ohci->registers + offset);
185} 185}
186 186
187extern inline void flush_writes(const struct fw_ohci *ohci) 187static inline void flush_writes(const struct fw_ohci *ohci)
188{ 188{
189 /* Do a dummy read to flush writes. */ 189 /* Do a dummy read to flush writes. */
190 reg_read(ohci, OHCI1394_Version); 190 reg_read(ohci, OHCI1394_Version);