public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] device core: remove redundant call to device_initialize.
@ 2006-05-05 15:39 Paolo 'Blaisorblade' Giarrusso
  2006-05-05 22:14 ` Russell King
  2006-05-06  2:35 ` Andrew Morton
  0 siblings, 2 replies; 5+ messages in thread
From: Paolo 'Blaisorblade' Giarrusso @ 2006-05-05 15:39 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Greg Kroah-Hartman, linux-kernel

From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>

platform_device_add calls device_register which calls then again
device_initialize, redundantly.

Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
---

 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);

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-05-06  7:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-05 15:39 [PATCH] device core: remove redundant call to device_initialize Paolo 'Blaisorblade' Giarrusso
2006-05-05 22:14 ` Russell King
2006-05-06  2:35 ` Andrew Morton
2006-05-06  7:10   ` Russell King
2006-05-06  7:15     ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox