diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-09 22:32:59 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-16 12:10:18 +0300 |
commit | cf901a1c5dd8df18d2308188d094a01e1e7c2143 (patch) | |
tree | 64325e250e97e8ca6ed7f8527ac55fd077abc8fe /include/linux/device.h | |
parent | 94e14da890b1b68526b5f87ff1c97f374fd2471e (diff) | |
download | linux-cf901a1c5dd8df18d2308188d094a01e1e7c2143.tar.xz |
device.h: move devtmpfs prototypes out of the file
The devtmpfs functions do not need to be in device.h as only the driver
core uses them, so move them to the private .h file for the driver core.
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Saravana Kannan <saravanak@google.com>
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20191209193303.1694546-3-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 96ff76731e93..ba4c24f9cd8b 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -1664,12 +1664,8 @@ extern void put_device(struct device *dev); extern bool kill_device(struct device *dev); #ifdef CONFIG_DEVTMPFS -extern int devtmpfs_create_node(struct device *dev); -extern int devtmpfs_delete_node(struct device *dev); extern int devtmpfs_mount(void); #else -static inline int devtmpfs_create_node(struct device *dev) { return 0; } -static inline int devtmpfs_delete_node(struct device *dev) { return 0; } static inline int devtmpfs_mount(void) { return 0; } #endif |