aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorDavid Kershner <david.kershner@unisys.com>2016-09-19 17:09:35 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-20 07:28:17 -0400
commit7993b40cd772cae9890f81fb0ea809130a732c5e (patch)
treeeb9560a74d346f9477adf173c957ffaa7b36780e /drivers/staging
parentebeff0558c0a311f4c5d432c69c32b9502219190 (diff)
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')
-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;
35 35
36static int busreg_rc = -ENODEV; /* stores the result from bus registration */ 36static int busreg_rc = -ENODEV; /* stores the result from bus registration */
37 37
38static int visorbus_uevent(struct device *xdev, struct kobj_uevent_env *env);
39static int visorbus_match(struct device *xdev, struct device_driver *xdrv);
40static void fix_vbus_dev_info(struct visor_device *visordev); 38static void fix_vbus_dev_info(struct visor_device *visordev);
41 39
42/* 40/*
@@ -99,18 +97,6 @@ static const struct attribute_group *visorbus_dev_groups[] = {
99 NULL, 97 NULL,
100}; 98};
101 99
102/*
103 * This describes the TYPE of bus.
104 * (Don't confuse this with an INSTANCE of the bus.)
105 */
106struct bus_type visorbus_type = {
107 .name = "visorbus",
108 .match = visorbus_match,
109 .uevent = visorbus_uevent,
110 .dev_groups = visorbus_dev_groups,
111 .bus_groups = visorbus_bus_groups,
112};
113
114/* filled in with info about parent chipset driver when we register with it */ 100/* filled in with info about parent chipset driver when we register with it */
115static struct ultra_vbus_deviceinfo chipset_driverinfo; 101static struct ultra_vbus_deviceinfo chipset_driverinfo;
116/* filled in with info about this driver, wrt it servicing client busses */ 102/* 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)
174 return 0; 160 return 0;
175} 161}
176 162
163/*
164 * This describes the TYPE of bus.
165 * (Don't confuse this with an INSTANCE of the bus.)
166 */
167struct bus_type visorbus_type = {
168 .name = "visorbus",
169 .match = visorbus_match,
170 .uevent = visorbus_uevent,
171 .dev_groups = visorbus_dev_groups,
172 .bus_groups = visorbus_bus_groups,
173};
174
177/** 175/**
178 * visorbus_releae_busdevice() - called when device_unregister() is called for 176 * visorbus_releae_busdevice() - called when device_unregister() is called for
179 * the bus device instance, after all other tasks 177 * the bus device instance, after all other tasks