File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
drivers/platform/surface/aggregator
include/linux/surface_aggregator Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ static struct attribute *ssam_device_attrs[] = {
35
35
};
36
36
ATTRIBUTE_GROUPS (ssam_device );
37
37
38
+ static const struct bus_type ssam_bus_type ;
39
+
38
40
static int ssam_device_uevent (const struct device * dev , struct kobj_uevent_env * env )
39
41
{
40
42
const struct ssam_device * sdev = to_ssam_device (dev );
@@ -329,13 +331,12 @@ static void ssam_bus_remove(struct device *dev)
329
331
sdrv -> remove (to_ssam_device (dev ));
330
332
}
331
333
332
- struct bus_type ssam_bus_type = {
334
+ static const struct bus_type ssam_bus_type = {
333
335
.name = "surface_aggregator" ,
334
336
.match = ssam_bus_match ,
335
337
.probe = ssam_bus_probe ,
336
338
.remove = ssam_bus_remove ,
337
339
};
338
- EXPORT_SYMBOL_GPL (ssam_bus_type );
339
340
340
341
/**
341
342
* __ssam_device_driver_register() - Register a SSAM client device driver.
Original file line number Diff line number Diff line change @@ -193,7 +193,6 @@ struct ssam_device_driver {
193
193
194
194
#ifdef CONFIG_SURFACE_AGGREGATOR_BUS
195
195
196
- extern struct bus_type ssam_bus_type ;
197
196
extern const struct device_type ssam_device_type ;
198
197
199
198
/**
You can’t perform that action at this time.
0 commit comments