MLK-17058 media: csi: fix spurious warning message
authorRobby Cai <robby.cai@nxp.com>
Thu, 7 Dec 2017 12:22:25 +0000 (20:22 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:50:57 +0000 (14:50 -0500)
commit8f53ff100c6f6ecffdc7b5fce0f37845df627265
tree43b5a476fbf3eff6847639d7a9768d2ce2f7df79
parent32838a797fce55fef4e3557ebfc3d1011083986e
MLK-17058 media: csi: fix spurious warning message

When boot up with 4K HDMI display, and at same time do a capture with
720p (or above), meet following message.

[  241.572132] mx6s-csi 30a90000.csi1_bridge: 82300000 != 82300000
[  241.604974] mx6s-csi 30a90000.csi1_bridge: 82700000 != 82700000
[  241.638305] mx6s-csi 30a90000.csi1_bridge: 82b00000 != 82b00000
[  241.704969] mx6s-csi 30a90000.csi1_bridge: 82300000 != 82300000
...

cast the type of unsigned long to unsigned int before compare two variables
to fix it.

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
(cherry picked from commit 0972b05917dd5bd3d6aa28e57b7181d647da28b8)
drivers/media/platform/mxc/capture/mx6s_capture.c