Commit 7b66a268 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] removal of devfs_register_series

	not used anymore
parent 2279d7d0
...@@ -105,42 +105,6 @@ void devfs_unregister_tape(int num) ...@@ -105,42 +105,6 @@ void devfs_unregister_tape(int num)
EXPORT_SYMBOL(devfs_unregister_tape); EXPORT_SYMBOL(devfs_unregister_tape);
/**
* devfs_register_series - Register a sequence of device entries.
* @dir: The handle to the parent devfs directory entry. If this is %NULL
* the new names are relative to the root of the devfs.
* @format: The printf-style format string. A single "\%u" is allowed.
* @num_entries: The number of entries to register.
* @flags: A set of bitwise-ORed flags (DEVFS_FL_*).
* @major: The major number. Not needed for regular files.
* @minor_start: The starting minor number. Not needed for regular files.
* @mode: The default file mode.
* @ops: The &file_operations or &block_device_operations structure.
* This must not be externally deallocated.
* @info: An arbitrary pointer which will be written to the private_data
* field of the &file structure passed to the device driver. You
* can set this to whatever you like, and change it once the file
* is opened (the next file opened will not see this change).
*/
void devfs_register_series (devfs_handle_t dir, const char *format,
unsigned int num_entries, unsigned int flags,
unsigned int major, unsigned int minor_start,
umode_t mode, void *ops, void *info)
{
unsigned int count;
char devname[128];
for (count = 0; count < num_entries; ++count)
{
sprintf (devname, format, count);
devfs_register (dir, devname, flags, major, minor_start + count,
mode, ops, info);
}
} /* End Function devfs_register_series */
EXPORT_SYMBOL(devfs_register_series);
struct major_list struct major_list
{ {
spinlock_t lock; spinlock_t lock;
......
...@@ -67,11 +67,6 @@ extern const char *devfs_get_name (devfs_handle_t de, unsigned int *namelen); ...@@ -67,11 +67,6 @@ extern const char *devfs_get_name (devfs_handle_t de, unsigned int *namelen);
extern int devfs_only (void); extern int devfs_only (void);
extern int devfs_register_tape (devfs_handle_t de); extern int devfs_register_tape (devfs_handle_t de);
extern void devfs_unregister_tape(int num); extern void devfs_unregister_tape(int num);
extern void devfs_register_series (devfs_handle_t dir, const char *format,
unsigned int num_entries,
unsigned int flags, unsigned int major,
unsigned int minor_start,
umode_t mode, void *ops, void *info);
extern int devfs_alloc_major (char type); extern int devfs_alloc_major (char type);
extern void devfs_dealloc_major (char type, int major); extern void devfs_dealloc_major (char type, int major);
extern dev_t devfs_alloc_devnum (char type); extern dev_t devfs_alloc_devnum (char type);
...@@ -178,17 +173,6 @@ static inline int devfs_register_tape (devfs_handle_t de) ...@@ -178,17 +173,6 @@ static inline int devfs_register_tape (devfs_handle_t de)
static inline void devfs_unregister_tape(int num) static inline void devfs_unregister_tape(int num)
{ {
} }
static inline void devfs_register_series (devfs_handle_t dir,
const char *format,
unsigned int num_entries,
unsigned int flags,
unsigned int major,
unsigned int minor_start,
umode_t mode, void *ops, void *info)
{
return;
}
static inline int devfs_alloc_major (char type) static inline int devfs_alloc_major (char type)
{ {
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment