diff options
author | pascal paillet <p.paillet@st.com> | 2018-07-05 17:25:56 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-07-05 20:55:08 +0300 |
commit | d8842211b6f63d3f069df973d137de0a85964965 (patch) | |
tree | 9529118b161f6800a80aebbb26315f013997d84b /include/linux/device.h | |
parent | 0380cf7dbaca75c524e34b30979f0806124fa8e6 (diff) | |
download | linux-d8842211b6f63d3f069df973d137de0a85964965.tar.xz |
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.h | 1 |
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 |