diff options
author | Shaokun Zhang <zhangshaokun@hisilicon.com> | 2018-07-15 18:08:56 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-16 13:32:20 +0200 |
commit | 46d3a03781ea70e25360660ac53bbb838de11c97 (patch) | |
tree | 88fd0e1204a97c05b57e8bd2ead787546eeb9da8 /drivers/base/core.c | |
parent | 3ec78790ec9a1e23fd9b6c8681a7cd3b64d3ad23 (diff) |
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/core.c')
-rw-r--r-- | drivers/base/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index ceb8ce90aebb..9a6c71038616 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -1736,7 +1736,7 @@ static void device_remove_sys_dev_entry(struct device *dev) } } -int device_private_init(struct device *dev) +static int device_private_init(struct device *dev) { dev->p = kzalloc(sizeof(*dev->p), GFP_KERNEL); if (!dev->p) |