From: Alan Stern Date: Mon, 7 Apr 2008 19:03:25 +0000 (-0400) Subject: USB: dummy-hcd: use dynamic allocation for platform_devices X-Git-Tag: v2.6.26-rc1~1061^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a89a2cd396b20c46a37fa8db4b652fb00f29d0a4;p=pandora-kernel.git USB: dummy-hcd: use dynamic allocation for platform_devices This patch (as1075) changes dummy-hcd to dynamically allocate its platform_device structures, using the core platform_device_alloc() interface. This is what it should have done all along, because the dynamically-allocated structures have a release method in the driver core and are therefore immune to being released after the module has been unloaded. Thanks to Richard Purdie for pointing out the need for this change. Signed-off-by: Alan Stern Cc: Richard Purdie Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed