i2c: powermac: fix return path on error
authorWolfram Sang <wsa@the-dreams.de>
Thu, 11 Jul 2013 21:02:03 +0000 (22:02 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 21 Aug 2013 09:34:25 +0000 (11:34 +0200)
commit874e955b171f0505e2371c1ca80a2188efdc217d
tree01b14cb539a6e6b4178e764f0f66ee550c964632
parent42fa278d70e7caee728f6f3e563d1aaaf9c521aa
i2c: powermac: fix return path on error

We want to bail out immediately if i2c_add_adapter failed and not try to
register child nodes with a nilled adapter structure.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-powermac.c