Commit e564f3a0 authored by Benjamin Romer's avatar Benjamin Romer Committed by Greg Kroah-Hartman

staging: unisys: remove functions made redundant in uislib.c

The patches to move proc files have made the functions
uislib_proc_read_writeonly() and stop_chipset() redundant. Remove them.
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 81d2d7de
...@@ -134,11 +134,6 @@ static const struct file_operations proc_info_vbus_fops = { ...@@ -134,11 +134,6 @@ static const struct file_operations proc_info_vbus_fops = {
.release = single_release, .release = single_release,
}; };
static ssize_t uislib_proc_read_writeonly(struct file *file,
char __user *buffer,
size_t count, loff_t *ppos);
static ssize_t info_proc_read(struct file *file, char __user *buf, static ssize_t info_proc_read(struct file *file, char __user *buf,
size_t len, loff_t *offset); size_t len, loff_t *offset);
static const struct file_operations proc_info_fops = { static const struct file_operations proc_info_fops = {
...@@ -858,27 +853,6 @@ init_chipset(CONTROLVM_MESSAGE *msg, char *buf) ...@@ -858,27 +853,6 @@ init_chipset(CONTROLVM_MESSAGE *msg, char *buf)
return CONTROLVM_RESP_SUCCESS; return CONTROLVM_RESP_SUCCESS;
} }
static int
stop_chipset(CONTROLVM_MESSAGE *msg, char *buf)
{
/* Check that all buses and switches have been torn down and
* destroyed.
*/
if (BusListHead) {
/* Buses still exist. */
LOGERR("CONTROLVM_CHIPSET_STOP: BusListHead is not NULL");
return CONTROLVM_RESP_ERROR_CHIPSET_STOP_FAILED_BUS;
}
if (BusListCount) {
/* BusListHead is NULL, but BusListCount != 0 */
LOGERR("CONTROLVM_CHIPSET_STOP: BusListCount != 0");
return CONTROLVM_RESP_ERROR_CHIPSET_STOP_FAILED_BUS;
}
/* Buses are shut down. */
return visorchipset_chipset_notready();
}
static int static int
delete_bus_glue(U32 busNo) delete_bus_glue(U32 busNo)
{ {
...@@ -1410,13 +1384,6 @@ proc_info_vbus_show(struct seq_file *m, void *v) ...@@ -1410,13 +1384,6 @@ proc_info_vbus_show(struct seq_file *m, void *v)
return 0; return 0;
} }
static ssize_t
uislib_proc_read_writeonly(struct file *file, char __user *buffer,
size_t count, loff_t *ppos)
{
return 0;
}
static struct device_info * static struct device_info *
find_dev(U32 busNo, U32 devNo) find_dev(U32 busNo, U32 devNo)
{ {
......
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