summaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys/visorbus/visorbus_main.c
diff options
context:
space:
mode:
authorDavid Kershner2016-09-19 23:09:35 +0200
committerGreg Kroah-Hartman2016-09-20 13:28:17 +0200
commit7993b40cd772cae9890f81fb0ea809130a732c5e (patch)
treeeb9560a74d346f9477adf173c957ffaa7b36780e /drivers/staging/unisys/visorbus/visorbus_main.c
parentstaging: unisys: visorbus: move deviceenabled/disabled store functions (diff)
downloadkernel-qcow2-linux-7993b40cd772cae9890f81fb0ea809130a732c5e.tar.gz
kernel-qcow2-linux-7993b40cd772cae9890f81fb0ea809130a732c5e.tar.xz
kernel-qcow2-linux-7993b40cd772cae9890f81fb0ea809130a732c5e.zip
staging: unisys: visorbus move visorbus_type to remove prototypes
Move the struct visorbus_type down in the file to get rid of the function prototypes visorbus_uevent and visorbus_match. Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: David Kershner <david.kershner@unisys.com> Reviewed-by: Tim Sell <Timothy.Sell@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/unisys/visorbus/visorbus_main.c')
-rw-r--r--drivers/staging/unisys/visorbus/visorbus_main.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c
index 8ed60c0d107b..d41e3d96f023 100644
--- a/drivers/staging/unisys/visorbus/visorbus_main.c
+++ b/drivers/staging/unisys/visorbus/visorbus_main.c
@@ -35,8 +35,6 @@ static int visorbus_forcenomatch;
static int busreg_rc = -ENODEV; /* stores the result from bus registration */
-static int visorbus_uevent(struct device *xdev, struct kobj_uevent_env *env);
-static int visorbus_match(struct device *xdev, struct device_driver *xdrv);
static void fix_vbus_dev_info(struct visor_device *visordev);
/*
@@ -99,18 +97,6 @@ static const struct attribute_group *visorbus_dev_groups[] = {
NULL,
};
-/*
- * This describes the TYPE of bus.
- * (Don't confuse this with an INSTANCE of the bus.)
- */
-struct bus_type visorbus_type = {
- .name = "visorbus",
- .match = visorbus_match,
- .uevent = visorbus_uevent,
- .dev_groups = visorbus_dev_groups,
- .bus_groups = visorbus_bus_groups,
-};
-
/* filled in with info about parent chipset driver when we register with it */
static struct ultra_vbus_deviceinfo chipset_driverinfo;
/* filled in with info about this driver, wrt it servicing client busses */
@@ -174,6 +160,18 @@ visorbus_match(struct device *xdev, struct device_driver *xdrv)
return 0;
}
+/*
+ * This describes the TYPE of bus.
+ * (Don't confuse this with an INSTANCE of the bus.)
+ */
+struct bus_type visorbus_type = {
+ .name = "visorbus",
+ .match = visorbus_match,
+ .uevent = visorbus_uevent,
+ .dev_groups = visorbus_dev_groups,
+ .bus_groups = visorbus_bus_groups,
+};
+
/**
* visorbus_releae_busdevice() - called when device_unregister() is called for
* the bus device instance, after all other tasks