summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2013-10-06 20:23:49 +0200
committerSebastian Reichel <sre@kernel.org>2014-04-28 13:13:00 +0200
commit059a2a561a3b9afb43699b6215edcb72d5030031 (patch)
tree7581330b69c32686c4f60b2a5eb17ace74c43423 /drivers
parent19b60fb462e6fcbd0652a959ee9c3c056d74483b (diff)
downloadlinux-059a2a561a3b9afb43699b6215edcb72d5030031.tar.bz2
HSI: method to unregister clients from an hsi port
This exports a method to unregister all clients from an hsi port. Signed-off-by: Sebastian Reichel <sre@kernel.org> Reviewed-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hsi/hsi.c10
1 files 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
@@ -130,6 +130,16 @@ static void hsi_port_release(struct device *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
*/