drm/msm/mdp: fix a problematic usage of WARN_ON()
authorGeliang Tang <geliangtang@163.com>
Wed, 25 Nov 2015 13:12:14 +0000 (21:12 +0800)
committerRob Clark <robdclark@gmail.com>
Mon, 14 Dec 2015 16:51:04 +0000 (11:51 -0500)
WARN_ON() takes a condition rather than a format string. This patch
converted WARN_ON() to WARN() instead.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h

index f3bb80833e7380ebf34bc45b276be5b9fb5c81a9..d2c96ef431f4019a5135fd2966587fe51f5baf5e 100644 (file)
@@ -157,7 +157,7 @@ static inline uint32_t mixercfg(uint32_t mixer_cfg, int mixer,
                        COND(mixer == 1, MDP4_LAYERMIXER_IN_CFG_PIPE6_MIXER1);
                break;
        default:
-               WARN_ON("invalid pipe");
+               WARN(1, "invalid pipe");
                break;
        }