summaryrefslogtreecommitdiffstats
path: root/drivers/staging/most
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2017-11-21 15:04:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-27 09:20:34 +0100
commit921c80c52b7440a0f5c5c542d40a3295d525276b (patch)
tree7faa4d6548808c767c30235eeb114ea4f775d150 /drivers/staging/most
parent14c018a93e8e74310e2e9f9a9e6cb39e7337c44b (diff)
downloadlinux-921c80c52b7440a0f5c5c542d40a3295d525276b.tar.bz2
staging: most: core: add a match function for the bus
This patch adds the function most_match. It is needed to accociate registered devices and drivers with the bus. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r--drivers/staging/most/core.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c
index 7f7d6b65d76f..ce063a1597c3 100644
--- a/drivers/staging/most/core.c
+++ b/drivers/staging/most/core.c
@@ -756,11 +756,20 @@ static const struct attribute_group *aim_attr_groups[] = {
* ___C O R E___
*/
+int most_match(struct device *dev, struct device_driver *drv)
+{
+ if (!strcmp(dev_name(dev), "most"))
+ return 0;
+ else
+ return 1;
+}
+
/**
* Instantiation of the MOST bus
*/
static struct bus_type most_bus = {
.name = "most",
+ .match = most_match,
};
/**