summaryrefslogtreecommitdiffstats
path: root/drivers/base/base.h
diff options
context:
space:
mode:
authorShaokun Zhang <zhangshaokun@hisilicon.com>2018-07-15 12:08:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-16 13:32:20 +0200
commit46d3a03781ea70e25360660ac53bbb838de11c97 (patch)
tree88fd0e1204a97c05b57e8bd2ead787546eeb9da8 /drivers/base/base.h
parentsysfs.h: fix non-kernel-doc comment (diff)
downloadlinux-46d3a03781ea70e25360660ac53bbb838de11c97.tar.xz
linux-46d3a03781ea70e25360660ac53bbb838de11c97.zip
driver core: remove unnecessary function extern declare
device_private_init is called only in core.c, extern declare is unnecessary and make it static. Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: "Rafael J. Wysocki" <rafael@kernel.org> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/base.h')
-rw-r--r--drivers/base/base.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/base/base.h b/drivers/base/base.h
index a75c3025fb78..7a419a7a6235 100644
--- a/drivers/base/base.h
+++ b/drivers/base/base.h
@@ -84,8 +84,6 @@ struct device_private {
#define to_device_private_bus(obj) \
container_of(obj, struct device_private, knode_bus)
-extern int device_private_init(struct device *dev);
-
/* initialisation functions */
extern int devices_init(void);
extern int buses_init(void);