commit | edea8f6f48416d9a6fd1babb76c19cf05c802325 | [log] [tgz] |
---|---|---|
author | Nishanth Aravamudan <nacc@us.ibm.com> | Wed Sep 15 08:05:47 2010 +0000 |
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | Wed Oct 13 16:19:21 2010 +1100 |
tree | 07e531b594c3493206d119fd068aa2e5f902e97c | |
parent | ffa56e555a6e4c205e879636e6cd6104ce03421f [diff] |
powerpc/vio: Use put_device() on device_register failure The kernel doc for device_register (and device_initialize) very clearly state to call put_device not kfree after calling, even on error. Signed-off-by: Milton Miller <miltonm@bga.com> Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>