powerpc/ibmebus: Fix further device reference leaks
authorJohan Hovold <johan@kernel.org>
Tue, 1 Nov 2016 15:26:01 +0000 (16:26 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 Nov 2016 09:05:58 +0000 (20:05 +1100)
commit815a7141c4d1b11610dccb7fcbb38633759824f2
treefa8436f7755d4f36457bf38dcd032b0d6777d7ef
parentfe0f3168169f7c34c29b0cf0c489f126a7f29643
powerpc/ibmebus: Fix further device reference leaks

Make sure to drop any reference taken by bus_find_device() when creating
devices during init and driver registration.

Fixes: 55347cc9962f ("[POWERPC] ibmebus: Add device creation and bus probing based on of_device")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/ibmebus.c