diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-05-12 11:34:05 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-05-13 12:39:10 +0200 |
commit | e4e55360dd6b2263bbbc83bf0f04b0bd9bb1f8fd (patch) | |
tree | 8b0f4e20f418569a964f95501edd3781ee197a99 /drivers/staging/greybus/core.c | |
parent | greybus: gpbridge: Expose protocol_id in sysfs (diff) | |
download | linux-dev-e4e55360dd6b2263bbbc83bf0f04b0bd9bb1f8fd.tar.xz linux-dev-e4e55360dd6b2263bbbc83bf0f04b0bd9bb1f8fd.zip |
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>
Diffstat (limited to 'drivers/staging/greybus/core.c')
-rw-r--r-- | drivers/staging/greybus/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c index 3fdc40597f16..a44846dd5d79 100644 --- a/drivers/staging/greybus/core.c +++ b/drivers/staging/greybus/core.c @@ -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, }; |