Files
kernel/include/linux
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
..
2005-10-30 17:37:32 -08:00
2005-09-13 08:22:31 -07:00
2005-10-18 23:19:47 -07:00
2005-10-17 17:03:57 -07:00
2005-10-22 14:27:05 -04:00
2005-10-28 08:16:49 -07:00
2005-09-07 16:57:21 -07:00
2005-10-04 13:22:01 -07:00
2005-10-28 08:16:47 -07:00
2005-09-10 10:06:21 -07:00
2005-09-10 10:16:27 -07:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:10 -08:00
2005-09-05 00:06:09 -07:00
2005-09-07 16:57:21 -07:00
2005-09-13 08:22:32 -07:00
2005-09-09 13:57:55 -07:00
2005-09-13 08:22:32 -07:00
2005-10-30 17:37:19 -08:00
2005-10-30 17:37:24 -08:00
2005-10-30 17:37:32 -08:00
2005-10-28 08:16:46 -07:00
2005-09-05 09:14:13 -07:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:32 -08:00
2005-10-29 19:32:20 +01:00
2005-10-28 08:16:47 -07:00
2005-09-19 15:41:28 -07:00
2005-09-07 16:57:48 -07:00
2005-10-03 14:13:38 -07:00
2005-10-28 08:16:47 -07:00
2005-09-17 11:50:02 -07:00
2005-10-08 15:00:57 -07:00
2005-10-30 17:37:32 -08:00
2005-10-28 08:16:47 -07:00
2005-10-30 17:37:17 -08:00
2005-10-28 08:16:47 -07:00
2005-09-14 08:46:21 -04:00
2005-10-28 08:16:51 -07:00
2005-09-07 16:57:24 -07:00
2005-09-13 08:22:31 -07:00
2005-10-28 08:16:47 -07:00
2005-08-30 22:48:51 -05:00
2005-09-09 13:57:54 -07:00
2005-10-28 08:16:47 -07:00
2005-09-07 16:57:18 -07:00
2005-10-29 21:40:41 -07:00
2005-10-30 11:14:39 +11:00
2005-10-31 13:53:26 +00:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:19 -08:00
2005-10-28 08:16:47 -07:00
2005-09-10 10:06:21 -07:00
2005-10-28 08:16:47 -07:00
2005-09-05 00:05:45 -07:00
2005-10-30 17:37:20 -08:00
2005-10-30 17:37:32 -08:00
2005-09-18 00:18:32 -07:00
2005-09-10 10:06:36 -07:00
2005-10-30 17:37:18 -08:00
2005-09-09 13:57:58 -07:00
2005-10-28 08:16:46 -07:00
2005-10-28 08:16:49 -07:00
2005-10-29 21:40:35 -07:00