From bunk@stusta.de Thu Nov 16 17:19:49 2006 Date: Fri, 17 Nov 2006 02:19:44 +0100 From: Adrian Bunk To: Andrew Morton , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org Subject: Driver core: make drivers/base/core.c:setup_parent() static Message-ID: <20061117011944.GS31879@stusta.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline This patch makes the needlessly global setup_parent() static. Signed-off-by: Adrian Bunk Signed-off-by: Greg Kroah-Hartman --- drivers/base/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- gregkh-2.6.orig/drivers/base/core.c +++ gregkh-2.6/drivers/base/core.c @@ -389,7 +389,7 @@ void device_initialize(struct device *de } #ifdef CONFIG_SYSFS_DEPRECATED -int setup_parent(struct device *dev, struct device *parent) +static int setup_parent(struct device *dev, struct device *parent) { /* Set the parent to the class, not the parent device */ /* this keeps sysfs from having a symlink to make old udevs happy */ @@ -418,7 +418,7 @@ static int virtual_device_parent(struct return 0; } -int setup_parent(struct device *dev, struct device *parent) +static int setup_parent(struct device *dev, struct device *parent) { int error;