]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: sm750fb: use PLL_CTRL_POWER defines for CRT_PLL_CTRL
authorMike Rapoport <mike.rapoport@gmail.com>
Wed, 10 Feb 2016 16:33:56 +0000 (18:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 03:52:37 +0000 (19:52 -0800)
Use PLL_CTRL_POWER definitions for CRT_PLL_CTRL register access

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_display.c

index 514f909217d5e98e164b3ebbdc542358343adba8..5d1f9a517388d9f3dbf8f7a16c0159cf0dcc624a 100644 (file)
@@ -149,8 +149,8 @@ static void waitNextVerticalSync(int ctrl, int delay)
 
                /* Do not wait when the Primary PLL is off or display control is already off.
                           This will prevent the software to wait forever. */
-               if ((FIELD_GET(PEEK32(CRT_PLL_CTRL), CRT_PLL_CTRL, POWER) ==
-                        CRT_PLL_CTRL_POWER_OFF) ||
+               if ((FIELD_GET(PEEK32(CRT_PLL_CTRL), PLL_CTRL, POWER) ==
+                        PLL_CTRL_POWER_OFF) ||
                        (FIELD_GET(PEEK32(CRT_DISPLAY_CTRL), CRT_DISPLAY_CTRL, TIMING) ==
                         CRT_DISPLAY_CTRL_TIMING_DISABLE)) {
                        return;