mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 05:24:12 +08:00
greybus: core: Rename greybus_module_match()
greybus_module_match() doesn't match modules anymore but bundle devices and should be named correctly. Though we can use greybus_bundle_match() as well, rest of the kernel uses terminology like 'greybus_match_device' and so choosing that instead. Compile tested. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
6f8a028fd1
commit
e4e55360dd
@ -64,7 +64,7 @@ greybus_match_id(struct gb_bundle *bundle, const struct greybus_bundle_id *id)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static int greybus_module_match(struct device *dev, struct device_driver *drv)
|
||||
static int greybus_match_device(struct device *dev, struct device_driver *drv)
|
||||
{
|
||||
struct greybus_driver *driver = to_greybus_driver(drv);
|
||||
struct gb_bundle *bundle;
|
||||
@ -151,7 +151,7 @@ static int greybus_uevent(struct device *dev, struct kobj_uevent_env *env)
|
||||
|
||||
struct bus_type greybus_bus_type = {
|
||||
.name = "greybus",
|
||||
.match = greybus_module_match,
|
||||
.match = greybus_match_device,
|
||||
.uevent = greybus_uevent,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user