usb: phy: samsung: Consolidate reference clock rate handling
authorTomasz Figa <t.figa@samsung.com>
Thu, 16 May 2013 09:57:08 +0000 (11:57 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 May 2013 17:06:39 +0000 (20:06 +0300)
commit0aa823a2ca02cd21c587713e8195a2ffb8bd7872
tree74f6e7bdbc4a60f899d0bb504593fe1dab7cc8a3
parent87331b069761a292c7d832fc3bb34cde56418982
usb: phy: samsung: Consolidate reference clock rate handling

This patch cleans up handling of reference clock rate in Samsung USB PHY
drivers. It is mostly a cosmetic change but improves error handling in
case of failing to get reference clock or invalid clock rate.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-samsung-usb.c
drivers/usb/phy/phy-samsung-usb.h
drivers/usb/phy/phy-samsung-usb2.c
drivers/usb/phy/phy-samsung-usb3.c