phy: exynos-mipi-video: simplify check for coupled phy status
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 20 Jul 2016 10:50:47 +0000 (12:50 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:52:08 +0000 (13:52 +0900)
commite0576fa2c31a737f7aff0a8bac62e9aa8c3b6310
tree1527c032590ef17437b374fcdc73e4b5711981fd
parent6554c1366184dba45541753ec5d735abf4a3b50f
phy: exynos-mipi-video: simplify check for coupled phy status

There is no need to access regmap of coupled phy to check its state - such
information is already in the phy device itself, so use it directly. This
let us to avoid possible access to registers of the device in the disabled
power domain if the coupled phy is already disabled.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: If375eab85e6ec680e856a9eeafdf24823e8adb6e
drivers/phy/phy-exynos-mipi-video.c