diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-02-05 01:30:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 12:44:23 -0500 |
commit | 99ffab81071b7088ddebd4be9bbf1ad03c2a9e98 (patch) | |
tree | f441fef8f22b3f74c9803ae5dcf1d4c07649ffe3 | |
parent | 96762379915f0c46bfac566038e66dee3dd0e7b5 (diff) |
nubus: kill drivers/nubus/nubus_syms.c
nubus: kill drivers/nubus/nubus_syms.c
EXPORT_SYMBOL's belong to the actual code.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/nubus/Makefile | 1 | ||||
-rw-r--r-- | drivers/nubus/nubus.c | 13 | ||||
-rw-r--r-- | drivers/nubus/nubus_syms.c | 28 | ||||
-rw-r--r-- | drivers/nubus/proc.c | 4 |
4 files changed, 17 insertions, 29 deletions
diff --git a/drivers/nubus/Makefile b/drivers/nubus/Makefile index f5ef03cf9879..21bda2031e7e 100644 --- a/drivers/nubus/Makefile +++ b/drivers/nubus/Makefile | |||
@@ -4,5 +4,4 @@ | |||
4 | 4 | ||
5 | obj-y := nubus.o | 5 | obj-y := nubus.o |
6 | 6 | ||
7 | obj-$(CONFIG_MODULES) += nubus_syms.o | ||
8 | obj-$(CONFIG_PROC_FS) += proc.o | 7 | obj-$(CONFIG_PROC_FS) += proc.o |
diff --git a/drivers/nubus/nubus.c b/drivers/nubus/nubus.c index f4076aeb2098..2f047e573d86 100644 --- a/drivers/nubus/nubus.c +++ b/drivers/nubus/nubus.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/errno.h> | 14 | #include <linux/errno.h> |
15 | #include <linux/init.h> | 15 | #include <linux/init.h> |
16 | #include <linux/delay.h> | 16 | #include <linux/delay.h> |
17 | #include <linux/module.h> | ||
17 | #include <asm/setup.h> | 18 | #include <asm/setup.h> |
18 | #include <asm/system.h> | 19 | #include <asm/system.h> |
19 | #include <asm/page.h> | 20 | #include <asm/page.h> |
@@ -186,6 +187,7 @@ void nubus_get_rsrc_mem(void *dest, const struct nubus_dirent* dirent, | |||
186 | len--; | 187 | len--; |
187 | } | 188 | } |
188 | } | 189 | } |
190 | EXPORT_SYMBOL(nubus_get_rsrc_mem); | ||
189 | 191 | ||
190 | void nubus_get_rsrc_str(void *dest, const struct nubus_dirent* dirent, | 192 | void nubus_get_rsrc_str(void *dest, const struct nubus_dirent* dirent, |
191 | int len) | 193 | int len) |
@@ -200,6 +202,7 @@ void nubus_get_rsrc_str(void *dest, const struct nubus_dirent* dirent, | |||
200 | len--; | 202 | len--; |
201 | } | 203 | } |
202 | } | 204 | } |
205 | EXPORT_SYMBOL(nubus_get_rsrc_str); | ||
203 | 206 | ||
204 | int nubus_get_root_dir(const struct nubus_board* board, | 207 | int nubus_get_root_dir(const struct nubus_board* board, |
205 | struct nubus_dir* dir) | 208 | struct nubus_dir* dir) |
@@ -209,6 +212,7 @@ int nubus_get_root_dir(const struct nubus_board* board, | |||
209 | dir->mask = board->lanes; | 212 | dir->mask = board->lanes; |
210 | return 0; | 213 | return 0; |
211 | } | 214 | } |
215 | EXPORT_SYMBOL(nubus_get_root_dir); | ||
212 | 216 | ||
213 | /* This is a slyly renamed version of the above */ | 217 | /* This is a slyly renamed version of the above */ |
214 | int nubus_get_func_dir(const struct nubus_dev* dev, | 218 | int nubus_get_func_dir(const struct nubus_dev* dev, |
@@ -219,6 +223,7 @@ int nubus_get_func_dir(const struct nubus_dev* dev, | |||
219 | dir->mask = dev->board->lanes; | 223 | dir->mask = dev->board->lanes; |
220 | return 0; | 224 | return 0; |
221 | } | 225 | } |
226 | EXPORT_SYMBOL(nubus_get_func_dir); | ||
222 | 227 | ||
223 | int nubus_get_board_dir(const struct nubus_board* board, | 228 | int nubus_get_board_dir(const struct nubus_board* board, |
224 | struct nubus_dir* dir) | 229 | struct nubus_dir* dir) |
@@ -237,6 +242,7 @@ int nubus_get_board_dir(const struct nubus_board* board, | |||
237 | return -1; | 242 | return -1; |
238 | return 0; | 243 | return 0; |
239 | } | 244 | } |
245 | EXPORT_SYMBOL(nubus_get_board_dir); | ||
240 | 246 | ||
241 | int nubus_get_subdir(const struct nubus_dirent *ent, | 247 | int nubus_get_subdir(const struct nubus_dirent *ent, |
242 | struct nubus_dir *dir) | 248 | struct nubus_dir *dir) |
@@ -246,6 +252,7 @@ int nubus_get_subdir(const struct nubus_dirent *ent, | |||
246 | dir->mask = ent->mask; | 252 | dir->mask = ent->mask; |
247 | return 0; | 253 | return 0; |
248 | } | 254 | } |
255 | EXPORT_SYMBOL(nubus_get_subdir); | ||
249 | 256 | ||
250 | int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) | 257 | int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) |
251 | { | 258 | { |
@@ -274,12 +281,14 @@ int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) | |||
274 | ent->mask = nd->mask; | 281 | ent->mask = nd->mask; |
275 | return 0; | 282 | return 0; |
276 | } | 283 | } |
284 | EXPORT_SYMBOL(nubus_readdir); | ||
277 | 285 | ||
278 | int nubus_rewinddir(struct nubus_dir* dir) | 286 | int nubus_rewinddir(struct nubus_dir* dir) |
279 | { | 287 | { |
280 | dir->ptr = dir->base; | 288 | dir->ptr = dir->base; |
281 | return 0; | 289 | return 0; |
282 | } | 290 | } |
291 | EXPORT_SYMBOL(nubus_rewinddir); | ||
283 | 292 | ||
284 | /* Driver interface functions, more or less like in pci.c */ | 293 | /* Driver interface functions, more or less like in pci.c */ |
285 | 294 | ||
@@ -303,6 +312,7 @@ nubus_find_device(unsigned short category, | |||
303 | } | 312 | } |
304 | return NULL; | 313 | return NULL; |
305 | } | 314 | } |
315 | EXPORT_SYMBOL(nubus_find_device); | ||
306 | 316 | ||
307 | struct nubus_dev* | 317 | struct nubus_dev* |
308 | nubus_find_type(unsigned short category, | 318 | nubus_find_type(unsigned short category, |
@@ -320,6 +330,7 @@ nubus_find_type(unsigned short category, | |||
320 | } | 330 | } |
321 | return NULL; | 331 | return NULL; |
322 | } | 332 | } |
333 | EXPORT_SYMBOL(nubus_find_type); | ||
323 | 334 | ||
324 | struct nubus_dev* | 335 | struct nubus_dev* |
325 | nubus_find_slot(unsigned int slot, | 336 | nubus_find_slot(unsigned int slot, |
@@ -335,6 +346,7 @@ nubus_find_slot(unsigned int slot, | |||
335 | } | 346 | } |
336 | return NULL; | 347 | return NULL; |
337 | } | 348 | } |
349 | EXPORT_SYMBOL(nubus_find_slot); | ||
338 | 350 | ||
339 | int | 351 | int |
340 | nubus_find_rsrc(struct nubus_dir* dir, unsigned char rsrc_type, | 352 | nubus_find_rsrc(struct nubus_dir* dir, unsigned char rsrc_type, |
@@ -346,6 +358,7 @@ nubus_find_rsrc(struct nubus_dir* dir, unsigned char rsrc_type, | |||
346 | } | 358 | } |
347 | return -1; | 359 | return -1; |
348 | } | 360 | } |
361 | EXPORT_SYMBOL(nubus_find_rsrc); | ||
349 | 362 | ||
350 | /* Initialization functions - decide which slots contain stuff worth | 363 | /* Initialization functions - decide which slots contain stuff worth |
351 | looking at, and print out lots and lots of information from the | 364 | looking at, and print out lots and lots of information from the |
diff --git a/drivers/nubus/nubus_syms.c b/drivers/nubus/nubus_syms.c deleted file mode 100644 index 9204f04fbf0b..000000000000 --- a/drivers/nubus/nubus_syms.c +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | /* Exported symbols for NuBus services | ||
2 | |||
3 | (c) 1999 David Huggins-Daines <dhd@debian.org> */ | ||
4 | |||
5 | #include <linux/module.h> | ||
6 | #include <linux/types.h> | ||
7 | #include <linux/nubus.h> | ||
8 | |||
9 | #ifdef CONFIG_PROC_FS | ||
10 | EXPORT_SYMBOL(nubus_proc_attach_device); | ||
11 | EXPORT_SYMBOL(nubus_proc_detach_device); | ||
12 | #endif | ||
13 | |||
14 | MODULE_LICENSE("GPL"); | ||
15 | |||
16 | EXPORT_SYMBOL(nubus_find_device); | ||
17 | EXPORT_SYMBOL(nubus_find_type); | ||
18 | EXPORT_SYMBOL(nubus_find_slot); | ||
19 | EXPORT_SYMBOL(nubus_get_root_dir); | ||
20 | EXPORT_SYMBOL(nubus_get_board_dir); | ||
21 | EXPORT_SYMBOL(nubus_get_func_dir); | ||
22 | EXPORT_SYMBOL(nubus_readdir); | ||
23 | EXPORT_SYMBOL(nubus_find_rsrc); | ||
24 | EXPORT_SYMBOL(nubus_rewinddir); | ||
25 | EXPORT_SYMBOL(nubus_get_subdir); | ||
26 | EXPORT_SYMBOL(nubus_get_rsrc_mem); | ||
27 | EXPORT_SYMBOL(nubus_get_rsrc_str); | ||
28 | |||
diff --git a/drivers/nubus/proc.c b/drivers/nubus/proc.c index 5271a4a7af26..e07492be1f4a 100644 --- a/drivers/nubus/proc.c +++ b/drivers/nubus/proc.c | |||
@@ -22,6 +22,8 @@ | |||
22 | #include <linux/nubus.h> | 22 | #include <linux/nubus.h> |
23 | #include <linux/proc_fs.h> | 23 | #include <linux/proc_fs.h> |
24 | #include <linux/init.h> | 24 | #include <linux/init.h> |
25 | #include <linux/module.h> | ||
26 | |||
25 | #include <asm/uaccess.h> | 27 | #include <asm/uaccess.h> |
26 | #include <asm/byteorder.h> | 28 | #include <asm/byteorder.h> |
27 | 29 | ||
@@ -140,6 +142,7 @@ int nubus_proc_attach_device(struct nubus_dev *dev) | |||
140 | 142 | ||
141 | return 0; | 143 | return 0; |
142 | } | 144 | } |
145 | EXPORT_SYMBOL(nubus_proc_attach_device); | ||
143 | 146 | ||
144 | /* FIXME: this is certainly broken! */ | 147 | /* FIXME: this is certainly broken! */ |
145 | int nubus_proc_detach_device(struct nubus_dev *dev) | 148 | int nubus_proc_detach_device(struct nubus_dev *dev) |
@@ -154,6 +157,7 @@ int nubus_proc_detach_device(struct nubus_dev *dev) | |||
154 | } | 157 | } |
155 | return 0; | 158 | return 0; |
156 | } | 159 | } |
160 | EXPORT_SYMBOL(nubus_proc_detach_device); | ||
157 | 161 | ||
158 | void __init proc_bus_nubus_add_devices(void) | 162 | void __init proc_bus_nubus_add_devices(void) |
159 | { | 163 | { |