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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3ec78790ec
commit
46d3a03781
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user