lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <1394403956-17297-4-git-send-email-sre@debian.org> Date: Sun, 9 Mar 2014 23:25:53 +0100 From: Sebastian Reichel <sre@...ian.org> To: Sebastian Reichel <sre@...g0.de>, Linus Walleij <linus.walleij@...aro.org>, Shubhrajyoti Datta <omaplinuxkernel@...il.com>, Carlos Chinea <cch.devel@...il.com> Cc: Tony Lindgren <tony@...mide.com>, Rob Herring <robh+dt@...nel.org>, Pawel Moll <pawel.moll@....com>, Mark Rutland <mark.rutland@....com>, Ian Campbell <ijc+devicetree@...lion.org.uk>, Kumar Gala <galak@...eaurora.org>, devicetree@...r.kernel.org, linux-kernel@...r.kernel.org, linux-omap@...r.kernel.org, Pali Rohár <pali.rohar@...il.com>, Ивайло Димитров <freemangordon@....bg>, Joni Lapilainen <joni.lapilainen@...il.com>, Aaro Koskinen <aaro.koskinen@....fi>, Sebastian Reichel <sre@...ian.org> Subject: [PATCHv2 3/6] 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@...ian.org> --- drivers/hsi/hsi.c | 10 ++++++++++ include/linux/hsi/hsi.h | 1 + 2 files changed, 11 insertions(+) diff --git a/drivers/hsi/hsi.c b/drivers/hsi/hsi.c index 6fde590..098cc3a 100644 --- a/drivers/hsi/hsi.c +++ b/drivers/hsi/hsi.c @@ -160,6 +160,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 */ diff --git a/include/linux/hsi/hsi.h b/include/linux/hsi/hsi.h index fb07339..89cc6f2 100644 --- a/include/linux/hsi/hsi.h +++ b/include/linux/hsi/hsi.h @@ -284,6 +284,7 @@ int hsi_register_controller(struct hsi_controller *hsi); void hsi_unregister_controller(struct hsi_controller *hsi); void hsi_add_clients_from_dt(struct hsi_port *port, struct device_node *clients); +void hsi_port_unregister_clients(struct hsi_port *port); static inline void hsi_controller_set_drvdata(struct hsi_controller *hsi, void *data) -- 1.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists