summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2010-08-26 09:15:30 +0200
committerMatthew Garrett <mjg@redhat.com>2010-10-21 15:36:48 +0200
commitc64eefd48c44fa8145ad1f96edabf4a053fffc49 (patch)
tree6956b6d86c7253d1cd52233c3818d3041787405b /drivers/spi
parentWMI: make use of class device's attributres (diff)
downloadlinux-c64eefd48c44fa8145ad1f96edabf4a053fffc49.tar.xz
linux-c64eefd48c44fa8145ad1f96edabf4a053fffc49.zip
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 <dtor@mail.ru> Signed-off-by: Matthew Garrett <mjg@redhat.com>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions