Levente Kurusa 0c692d0784 drivers/net/phy/mdio_bus.c: call put_device on device_register() failure
It is required to call put_device() if device_register() fails, so that
we give up the last reference to the device.  Calling put_device allows
for mdiobus_release to be executed, kfreeing the bus.

Signed-off-by: Levente Kurusa <levex@linux.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: David Daney <david.daney@cavium.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-01-30 16:56:54 -08:00
..
2014-01-25 13:18:00 -08:00
2014-01-23 18:45:38 -08:00
2014-01-23 18:49:36 -08:00
2014-01-23 18:36:55 -08:00
2014-01-23 18:49:36 -08:00
2014-01-29 20:00:13 -08:00
2014-01-25 10:49:30 -08:00
2014-01-25 13:19:10 -08:00
2014-01-26 11:00:41 -08:00
2014-01-28 18:56:37 -08:00
2014-01-23 18:45:38 -08:00
2014-01-12 23:48:18 +01:00
2014-01-15 14:51:22 -08:00
2014-01-27 08:15:51 -08:00
2014-01-25 13:19:10 -08:00
2014-01-25 13:20:36 -08:00
2013-12-31 09:51:02 -07:00
2014-01-28 18:50:24 -08:00
2014-01-22 22:24:35 -08:00