spi: free children in spi_unregister_master, not siblings
authorDavid Lamparter <equinox@diac24.net>
Mon, 30 Aug 2010 21:54:17 +0000 (23:54 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 1 Sep 2010 15:15:24 +0000 (09:15 -0600)
introduced by 49dce689 ("spi doesn't need class_device") and bad-fixed
by 350d0076 ("spi: fix double-free on spi_unregister_master"),
spi_unregister_master would previously device_unregister all of the spi
master's siblings (instead of its children). hilarity ensues.

fix it to unregister children.

Signed-off-by: David Lamparter <equinox@diac24.net>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

No differences found