Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030567AbcJQTSg (ORCPT ); Mon, 17 Oct 2016 15:18:36 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33661 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934034AbcJQTS2 (ORCPT ); Mon, 17 Oct 2016 15:18:28 -0400 From: frowand.list@gmail.com To: Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] of: make of_device_make_bus_id() static Date: Mon, 17 Oct 2016 12:17:43 -0700 Message-Id: <1476731863-13878-1-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1492 Lines: 40 From: Frank Rowand of_device_make_bus_id() was changed to non-static by commit c66012253800 ("of/device: Make of_device_make_bus_id() usable by other code") more than 6 years ago, but there are no users of it outside of platform.c. Make the function static again. Signed-off-by: Frank Rowand --- drivers/of/platform.c | 2 +- include/linux/of_device.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/of/platform.c b/drivers/of/platform.c index e4bf07d20f9b..b232063174cc 100644 --- a/drivers/of/platform.c +++ b/drivers/of/platform.c @@ -73,7 +73,7 @@ struct platform_device *of_find_device_by_node(struct device_node *np) * derive a unique name. If it cannot, then it will prepend names from * parent nodes until a unique name can be derived. */ -void of_device_make_bus_id(struct device *dev) +static void of_device_make_bus_id(struct device *dev) { struct device_node *node = dev->of_node; const __be32 *reg; diff --git a/include/linux/of_device.h b/include/linux/of_device.h index cc7dd687a89d..5c2aeed17dd4 100644 --- a/include/linux/of_device.h +++ b/include/linux/of_device.h @@ -13,7 +13,6 @@ #ifdef CONFIG_OF extern const struct of_device_id *of_match_device( const struct of_device_id *matches, const struct device *dev); -extern void of_device_make_bus_id(struct device *dev); /** * of_driver_match_device - Tell if a driver's of_match_table matches a device. -- 1.9.1