[COMMON] media: scaler: fix condition for clk request
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Fri, 1 Jun 2018 04:58:38 +0000 (13:58 +0900)
committerJanghyuck Kim <janghyuck.kim@samsung.com>
Mon, 23 Jul 2018 05:39:41 +0000 (14:39 +0900)
After 5.0.1 version, clk request setting is supported.

Change-Id: Iaf5d476e75ce93746e0c575e189698557b0f3296
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
drivers/media/platform/exynos/scaler/scaler-regs.h

index c305a6dc006026b56a04b06d4b60bad470273c97..69f1066205e2534e7f27f093b356e0e416ca8a9e 100644 (file)
 
 static inline void sc_hwset_clk_request(struct sc_dev *sc, bool enable)
 {
-       if (sc->version == SCALER_VERSION(5, 0, 1))
+       if (sc->version >= SCALER_VERSION(5, 0, 1))
                __raw_writel(enable ? 1 : 0, sc->regs + SCALER_CLK_REQ);
 }