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-28 16:28:04 +01:00
2005-10-30 17:37:32 -08:00
2005-10-31 16:36:08 -02:00
2005-10-31 16:36:08 -02:00
2005-10-22 14:27:05 -04:00
2005-10-28 08:16:49 -07:00
2005-10-28 08:16:47 -07:00
2005-10-30 17:37:21 -08:00
2005-10-28 08:56:34 -07:00
2005-10-30 17:37:17 -08:00
2005-10-30 17:37:14 -08:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:21 -08:00
2005-10-29 19:07:23 +01:00
2005-10-30 17:37:10 -08:00
2005-11-03 13:53:34 +11:00
2005-10-28 08:53:49 -07:00
2005-11-02 22:08:52 -02:00
2005-10-28 16:30:00 -02:00
2005-10-28 16:25:58 -04:00
2005-10-30 17:37:19 -08:00
2005-10-29 14:42:28 +10:00
2005-10-30 17:37:24 -08:00
2005-10-30 17:37:32 -08:00
2005-11-01 09:26:16 +01:00
2005-10-28 08:16:46 -07:00
2005-10-29 21:40:41 -07:00
2005-10-28 14:02:10 -07:00
2005-10-28 14:02:10 -07:00
2005-10-28 14:02:10 -07:00
2005-10-28 14:02:09 -07:00
2005-10-28 14:02: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-10-28 13:09:47 -07:00
2005-10-28 08:16:47 -07:00
2005-10-30 17:37:26 -08:00
2005-10-30 17:37:23 -08:00
2005-10-30 17:37:23 -08: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-30 04:44:42 -05:00
2005-10-28 08:16:51 -07:00
2005-10-28 08:16:47 -07:00
2005-10-29 21:40:44 -07:00
2005-10-29 21:40:44 -07:00
2005-10-30 17:37:22 -08:00
2005-10-29 21:40:44 -07:00
2005-10-29 21:40:44 -07:00
2005-10-28 14:02:15 -07:00
2005-10-30 17:37:26 -08:00
2005-10-30 17:37:32 -08:00
2005-10-28 16:30:00 -02:00
2005-11-04 15:33:38 -05:00
2005-10-27 22:12:44 -04:00
2005-10-30 17:37:21 -08:00
2005-10-28 08:16:51 -07:00
2005-11-04 18:01:34 -08:00
2005-10-28 15:36:58 -07:00
2005-11-05 21:19:33 +00:00
2005-10-30 17:37:15 -08:00
2005-10-28 08:16:47 -07:00
2005-10-30 17:37:27 -08:00
2005-10-28 08:16:47 -07:00
2005-10-29 21:40:41 -07:00
2005-10-29 21:40:35 -07:00
2005-10-30 11:14:39 +11:00
2005-10-30 17:37:31 -08:00
2005-10-30 17:37:23 -08:00
2005-10-29 19:07:23 +01:00
2005-10-31 13:53:26 +00:00
2005-10-29 19:31:54 +01:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:19 -08:00
2005-10-28 16:30:00 -02:00
2005-10-28 08:16:47 -07:00
2005-10-30 17:37:13 -08:00
2005-10-30 17:37:14 -08:00
2005-10-28 08:16:47 -07:00
2005-10-30 17:37:20 -08:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:21 -08:00
2005-10-30 17:37:18 -08:00
2005-10-28 08:16:46 -07:00
2005-10-28 08:16:49 -07:00
2005-10-28 16:47:45 -07:00
2005-10-28 16:47:51 -07:00
2005-10-28 16:47:46 -07:00
2005-10-29 21:40:35 -07:00
2005-10-28 14:02:12 -07:00
2005-10-29 15:04:02 +10:00