author: Sebastian Reichel <sre@kernel.org> 2013-10-06 20:23:49 +0200
committer: Sebastian Reichel <sre@kernel.org> 2014-05-16 00:54:29 +0200
commit: a0bf37edb4d34c21bdaa19a1624378924b917491
parent: 84d93b5e605324679cffb6d28c7339dd18165fd4
Commit Summary:
Diffstat:
1 file changed, 10 insertions, 0 deletions
diff --git a/drivers/hsi/hsi.c b/drivers/hsi/hsi.c
index 749f7b5c8179..e96a9874b1a4 100644
--- a/drivers/hsi/hsi.c
+++ b/drivers/hsi/hsi.c
@@ -129,6 +129,16 @@ static void hsi_port_release(struct device *dev)
kfree(to_hsi_port(dev));
}
+/**
+ * hsi_unregister_port - Unregister an HSI port
+ * @port: The HSI port to unregister
+ */
+void hsi_port_unregister_clients(struct hsi_port *port)
+{
+ device_for_each_child(&port->device, NULL, hsi_remove_client);
+}
+EXPORT_SYMBOL_GPL(hsi_port_unregister_clients);
+
/**
* hsi_unregister_controller - Unregister an HSI controller
* @hsi: The HSI controller to register