提交 921c80c5 编写于 作者: C Christian Gromm 提交者: Greg Kroah-Hartman

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: NChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 14c018a9
......@@ -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,
};
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册