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 <[email protected]>
Reviewed-by: Pavel Machek <[email protected]>
Tested-By: Ivaylo Dimitrov <[email protected]>
This commit is contained in:
Sebastian Reichel 2013-10-06 20:23:49 +02:00
commit a0bf37edb4
2 changed files with 11 additions and 0 deletions

View file

@ -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