summaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorpascal paillet2018-07-05 16:25:56 +0200
committerMark Brown2018-07-05 19:55:08 +0200
commitd8842211b6f63d3f069df973d137de0a85964965 (patch)
tree9529118b161f6800a80aebbb26315f013997d84b /include/linux/device.h
parentregulator: core: Change suspend_late to suspend (diff)
downloadkernel-qcow2-linux-d8842211b6f63d3f069df973d137de0a85964965.tar.gz
kernel-qcow2-linux-d8842211b6f63d3f069df973d137de0a85964965.tar.xz
kernel-qcow2-linux-d8842211b6f63d3f069df973d137de0a85964965.zip
driver core: Add device_link_remove function
Device_link_remove uses the same arguments than device_link_add. The Goal is to avoid storing the link pointer. Signed-off-by: pascal paillet <p.paillet@st.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 055a69dbcd18..9c1c3b1d5e11 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -1316,6 +1316,7 @@ extern const char *dev_driver_string(const struct device *dev);
struct device_link *device_link_add(struct device *consumer,
struct device *supplier, u32 flags);
void device_link_del(struct device_link *link);
+void device_link_remove(void *consumer, struct device *supplier);
#ifdef CONFIG_PRINTK