Files
kernel-tenderloin-3.0/arch/powerpc/kernel
Grant Likely 7096d04221 of/device: Rework to use common platform_device_alloc() for allocating devices
The current code allocates and manages platform_devices created from
the device tree manually.  It also uses an unsafe shortcut for
allocating the platform_device and the resource table at the same
time. (which I added in the last rework; sorry).

This patch refactors the code to use platform_device_alloc() for
allocating new devices.  This reduces the amount of custom code
implemented by of_platform, eliminates the unsafe alloc trick, and has
the side benefit of letting the platform_bus code manage freeing the
device data and resources when the device is freed.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Michal Simek <monstr@monstr.eu>
2010-10-21 11:10:10 -06:00
..
2010-07-14 17:14:00 +10:00
2010-08-04 10:26:03 +10:00
2010-07-14 17:14:00 +10:00
2010-03-05 03:04:08 -06:00
2010-05-05 09:11:10 -04:00
2010-05-17 12:18:52 +03:00
2010-07-24 09:58:22 -06:00
2010-08-04 10:26:03 +10:00
2010-08-24 15:26:30 +10:00
2009-07-12 12:22:34 -07:00
2010-08-04 10:26:03 +10:00
2010-09-22 09:33:50 -07:00
2010-07-19 10:56:54 +02:00
2010-03-12 15:52:32 -08:00
2010-07-14 17:14:00 +10:00