1
linux/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
attribute_container.c [PATCH] drivers/base - fix sparse warnings 2005-10-28 09:52:55 -07:00
base.h [PATCH] drivers/base - fix sparse warnings 2005-10-28 09:52:55 -07:00
bus.c [PATCH] fix klist semantics for lists which have elements removed on traversal 2005-09-07 18:26:54 -07:00
class.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
core.c [PATCH] kernel-doc: drivers/base fixes 2005-10-28 09:52:56 -07:00
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 [PATCH] Driver Core: fis bus rescan devices race 2005-09-22 07:58:24 -07:00
dmapool.c [PATCH] gfp flags annotations - part 1 2005-10-08 15:00:57 -07:00
driver.c [PATCH] kernel-doc: drivers/base fixes 2005-10-28 09:52:56 -07:00
firmware_class.c [PATCH] firmware: fix all kernel-doc warnings 2005-10-30 17:37:25 -08:00
firmware.c [PATCH] drivers/base - fix sparse warnings 2005-10-28 09:52:55 -07:00
init.c [PATCH] memory hotplug: sysfs and add/remove functions 2005-10-29 21:40:44 -07:00
Kconfig
Makefile [PATCH] memory hotplug: sysfs and add/remove functions 2005-10-29 21:40:44 -07:00
map.c [PATCH] drivers/base/*: use kzalloc instead of kmalloc+memset 2005-09-13 08:22:27 -07:00
memory.c [PATCH] memory hotplug: move section_mem_map alloc to sparse.c 2005-10-29 21:40:44 -07:00
node.c [PATCH] VM: add page_state info to per-node meminfo 2005-09-05 00:05:49 -07:00
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 [SCSI] fix transport class corner case after rework 2005-08-28 11:14:06 -05:00