+ fix-platform_device_add-to-use-device_add.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     Fix platform_device_add to use device_add

has been added to the -mm tree.  Its filename is

     fix-platform_device_add-to-use-device_add.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: Russell King <rmk@xxxxxxxxxxxxxxxx>

platform_device_add() should be using device_add() rather than
device_register() - any platform device passed to platform_device_add()
should have already been initialised, either by platform_device_alloc() or
platform_device_register().

Signed-off-by: Russell King <rmk@xxxxxxxxxxxxxxxx>
Cc: Greg KH <greg@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/base/platform.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/base/platform.c~fix-platform_device_add-to-use-device_add drivers/base/platform.c
--- devel/drivers/base/platform.c~fix-platform_device_add-to-use-device_add	2006-05-10 21:35:52.000000000 -0700
+++ devel-akpm/drivers/base/platform.c	2006-05-10 21:35:52.000000000 -0700
@@ -275,7 +275,7 @@ int platform_device_add(struct platform_
 	pr_debug("Registering platform device '%s'. Parent at %s\n",
 		 pdev->dev.bus_id, pdev->dev.parent->bus_id);
 
-	ret = device_register(&pdev->dev);
+	ret = device_add(&pdev->dev);
 	if (ret == 0)
 		return ret;
 
_

Patches currently in -mm which might be from rmk@xxxxxxxxxxxxxxxx are

fix-platform_device_add-to-use-device_add.patch
fix-for-serial-uart-lockup.patch
serial-fix-uart_bug_txen-test.patch
config_net=n-build-fix.patch
adjust-handle_irr_event-return-type.patch
drivers-acorn-char-pcf8583-vs-rtc-subsystem.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux