aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nubus
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-02-05 01:30:23 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-05 12:44:23 -0500
commit99ffab81071b7088ddebd4be9bbf1ad03c2a9e98 (patch)
treef441fef8f22b3f74c9803ae5dcf1d4c07649ffe3 /drivers/nubus
parent96762379915f0c46bfac566038e66dee3dd0e7b5 (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>
Diffstat (limited to 'drivers/nubus')
-rw-r--r--drivers/nubus/Makefile1
-rw-r--r--drivers/nubus/nubus.c13
-rw-r--r--drivers/nubus/nubus_syms.c28
-rw-r--r--drivers/nubus/proc.c4
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
5obj-y := nubus.o 5obj-y := nubus.o
6 6
7obj-$(CONFIG_MODULES) += nubus_syms.o
8obj-$(CONFIG_PROC_FS) += proc.o 7obj-$(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}
190EXPORT_SYMBOL(nubus_get_rsrc_mem);
189 191
190void nubus_get_rsrc_str(void *dest, const struct nubus_dirent* dirent, 192void 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}
205EXPORT_SYMBOL(nubus_get_rsrc_str);
203 206
204int nubus_get_root_dir(const struct nubus_board* board, 207int 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}
215EXPORT_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 */
214int nubus_get_func_dir(const struct nubus_dev* dev, 218int 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}
226EXPORT_SYMBOL(nubus_get_func_dir);
222 227
223int nubus_get_board_dir(const struct nubus_board* board, 228int 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}
245EXPORT_SYMBOL(nubus_get_board_dir);
240 246
241int nubus_get_subdir(const struct nubus_dirent *ent, 247int 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}
255EXPORT_SYMBOL(nubus_get_subdir);
249 256
250int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) 257int 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}
284EXPORT_SYMBOL(nubus_readdir);
277 285
278int nubus_rewinddir(struct nubus_dir* dir) 286int 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}
291EXPORT_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}
315EXPORT_SYMBOL(nubus_find_device);
306 316
307struct nubus_dev* 317struct nubus_dev*
308nubus_find_type(unsigned short category, 318nubus_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}
333EXPORT_SYMBOL(nubus_find_type);
323 334
324struct nubus_dev* 335struct nubus_dev*
325nubus_find_slot(unsigned int slot, 336nubus_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}
349EXPORT_SYMBOL(nubus_find_slot);
338 350
339int 351int
340nubus_find_rsrc(struct nubus_dir* dir, unsigned char rsrc_type, 352nubus_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}
361EXPORT_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
10EXPORT_SYMBOL(nubus_proc_attach_device);
11EXPORT_SYMBOL(nubus_proc_detach_device);
12#endif
13
14MODULE_LICENSE("GPL");
15
16EXPORT_SYMBOL(nubus_find_device);
17EXPORT_SYMBOL(nubus_find_type);
18EXPORT_SYMBOL(nubus_find_slot);
19EXPORT_SYMBOL(nubus_get_root_dir);
20EXPORT_SYMBOL(nubus_get_board_dir);
21EXPORT_SYMBOL(nubus_get_func_dir);
22EXPORT_SYMBOL(nubus_readdir);
23EXPORT_SYMBOL(nubus_find_rsrc);
24EXPORT_SYMBOL(nubus_rewinddir);
25EXPORT_SYMBOL(nubus_get_subdir);
26EXPORT_SYMBOL(nubus_get_rsrc_mem);
27EXPORT_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}
145EXPORT_SYMBOL(nubus_proc_attach_device);
143 146
144/* FIXME: this is certainly broken! */ 147/* FIXME: this is certainly broken! */
145int nubus_proc_detach_device(struct nubus_dev *dev) 148int 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}
160EXPORT_SYMBOL(nubus_proc_detach_device);
157 161
158void __init proc_bus_nubus_add_devices(void) 162void __init proc_bus_nubus_add_devices(void)
159{ 163{