Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751682AbWEEUc5 (ORCPT ); Fri, 5 May 2006 16:32:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751715AbWEEUc4 (ORCPT ); Fri, 5 May 2006 16:32:56 -0400 Received: from [151.97.230.9] ([151.97.230.9]:9948 "EHLO ssc.unict.it") by vger.kernel.org with ESMTP id S1751682AbWEEUc4 (ORCPT ); Fri, 5 May 2006 16:32:56 -0400 From: "Paolo 'Blaisorblade' Giarrusso" Subject: [PATCH] device core: remove redundant call to device_initialize. Date: Fri, 05 May 2006 17:39:08 +0200 To: Andrew Morton Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Message-Id: <20060505153907.12756.23295.stgit@zion.home.lan> Content-Type: text/plain; charset=utf-8; format=fixed User-Agent: StGIT/0.9 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by alpha.home.local id k45KXwU5031109 Content-Length: 1004 Lines: 29 From: Paolo 'Blaisorblade' Giarrusso platform_device_add calls device_register which calls then again device_initialize, redundantly. Cc: Greg Kroah-Hartman Signed-off-by: Paolo 'Blaisorblade' Giarrusso --- drivers/base/platform.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 83f5c59..b0d9bd4 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -317,7 +317,6 @@ EXPORT_SYMBOL_GPL(platform_device_del); */ int platform_device_register(struct platform_device * pdev) { - device_initialize(&pdev->dev); return platform_device_add(pdev); } EXPORT_SYMBOL_GPL(platform_device_register); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/