From: Dmitry Torokhov Date: Thu, 26 Aug 2010 07:15:30 +0000 (-0700) Subject: WMI: embed struct device directly into wmi_block X-Git-Tag: v2.6.37-rc1~128^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c64eefd48c44fa8145ad1f96edabf4a053fffc49;p=pandora-kernel.git WMI: embed struct device directly into wmi_block Instead of creating wmi_blocks and then register corresponding devices on a separate pass do it all in one shot, since lifetime rules for both objects are the same. This also takes care of leaking devices when device_create fails for one of them. Signed-off-by: Dmitry Torokhov Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed