diff options
author | Geliang Tang <geliangtang@163.com> | 2015-11-25 13:12:14 (GMT) |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2015-12-14 16:51:04 (GMT) |
commit | 2abd1c88345e9c10a8f34cf6d3b025bf7267ca85 (patch) | |
tree | 57745b13162e84ef240c4fd16baf0310f5186ad8 /drivers/gpu/drm/msm | |
parent | beb107f30ea74611286ede91f0aa93b145c476b4 (diff) | |
download | linux-2abd1c88345e9c10a8f34cf6d3b025bf7267ca85.tar.xz |
drm/msm/mdp: fix a problematic usage of WARN_ON()
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>
Diffstat (limited to 'drivers/gpu/drm/msm')
-rw-r--r-- | drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h index f3bb808..d2c96ef 100644 --- a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h +++ b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h @@ -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; } |