linux-stable-rt/drivers/base
Russell King 37c12e7497 [DRIVER MODEL] Improved dynamically allocated platform_device interface
Re-jig the simple platform device support to allow private data
to be attached to a platform device, as well as allowing the
parent device to be set.

Example usage:

	pdev = platform_device_alloc("mydev", id);
	if (pdev) {
		err = platform_device_add_resources(pdev, &resources,
						    ARRAY_SIZE(resources));
		if (err == 0)
			err = platform_device_add_data(pdev, &platform_data,
						       sizeof(platform_data));
		if (err == 0)
			err = platform_device_add(pdev);
	} else {
		err = -ENOMEM;
	}
	if (err)
		platform_device_put(pdev);

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-11-05 21:19:33 +00:00
..
power [PATCH] USB: fix pm patches with CONFIG_PM off part 2 2005-10-28 16:47:52 -07:00
Kconfig
Makefile [PATCH] memory hotplug: sysfs and add/remove functions 2005-10-29 21:40:44 -07:00
attribute_container.c
base.h
bus.c
class.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
core.c
cpu.c [PATCH] introduce get_cpu_sysdev() to retrieve a sysfs entry for a cpu. 2005-10-30 17:37:14 -08:00
dd.c
dmapool.c
driver.c
firmware.c
firmware_class.c [PATCH] firmware: fix all kernel-doc warnings 2005-10-30 17:37:25 -08:00
init.c [PATCH] memory hotplug: sysfs and add/remove functions 2005-10-29 21:40:44 -07:00
map.c
memory.c [PATCH] memory hotplug: move section_mem_map alloc to sparse.c 2005-10-29 21:40:44 -07:00
node.c
platform.c [DRIVER MODEL] Improved dynamically allocated platform_device interface 2005-11-05 21:19:33 +00:00
sys.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
transport_class.c