Commit 413b486e authored by Russell King's avatar Russell King Committed by Greg Kroah-Hartman

[PATCH] Add MCP bus_type probe and remove methods

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4866b124
...@@ -77,6 +77,8 @@ static int mcp_bus_resume(struct device *dev) ...@@ -77,6 +77,8 @@ static int mcp_bus_resume(struct device *dev)
static struct bus_type mcp_bus_type = { static struct bus_type mcp_bus_type = {
.name = "mcp", .name = "mcp",
.match = mcp_bus_match, .match = mcp_bus_match,
.probe = mcp_bus_probe,
.remove = mcp_bus_remove,
.suspend = mcp_bus_suspend, .suspend = mcp_bus_suspend,
.resume = mcp_bus_resume, .resume = mcp_bus_resume,
}; };
...@@ -227,8 +229,6 @@ EXPORT_SYMBOL(mcp_host_unregister); ...@@ -227,8 +229,6 @@ EXPORT_SYMBOL(mcp_host_unregister);
int mcp_driver_register(struct mcp_driver *mcpdrv) int mcp_driver_register(struct mcp_driver *mcpdrv)
{ {
mcpdrv->drv.bus = &mcp_bus_type; mcpdrv->drv.bus = &mcp_bus_type;
mcpdrv->drv.probe = mcp_bus_probe;
mcpdrv->drv.remove = mcp_bus_remove;
return driver_register(&mcpdrv->drv); return driver_register(&mcpdrv->drv);
} }
EXPORT_SYMBOL(mcp_driver_register); EXPORT_SYMBOL(mcp_driver_register);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment