phy: sunxi: Rework phy initialization
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 13 May 2014 15:44:17 +0000 (17:44 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Wed, 14 May 2014 14:11:13 +0000 (19:41 +0530)
commit2a7f9982d6c188052b85a6488c7008a45c4a062c
tree52bd4b3560d8ef9084cfdb5f8e36da589bca0844
parent4fc8a4e65fda3271357bbea933206851736894da
phy: sunxi: Rework phy initialization

Move the phy initialization and variables declaration to the loop itself, since
it is where it really belongs. Also remove all the temporary variables, we can
use the structure members directly.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-sun4i-usb.c