diff options
author | Rob Clark <robdclark@chromium.org> | 2020-09-28 17:19:12 -0700 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2020-09-29 10:20:51 +1000 |
commit | 200a2186b62714c099693dcb6444af373eaabf62 (patch) | |
tree | 3d7c6df47654f8d0041af7dbaff95d0b76f75aee /drivers/gpu/drm/msm/dsi | |
parent | 91d0ca3d6b523ec409b9af62468886d4e1a7d0dd (diff) | |
download | linux-200a2186b62714c099693dcb6444af373eaabf62.tar.gz linux-200a2186b62714c099693dcb6444af373eaabf62.tar.bz2 linux-200a2186b62714c099693dcb6444af373eaabf62.zip |
drm/msm: fix 32b build warns
Neither of these code-paths apply to older 32b devices, but it is rude
to introduce warnings.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200929001925.2916984-1-robdclark@gmail.com
Diffstat (limited to 'drivers/gpu/drm/msm/dsi')
-rw-r--r-- | drivers/gpu/drm/msm/dsi/pll/dsi_pll_7nm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/dsi/pll/dsi_pll_7nm.c b/drivers/gpu/drm/msm/dsi/pll/dsi_pll_7nm.c index 029cc8bf5a04..de0dfb815125 100644 --- a/drivers/gpu/drm/msm/dsi/pll/dsi_pll_7nm.c +++ b/drivers/gpu/drm/msm/dsi/pll/dsi_pll_7nm.c @@ -879,7 +879,7 @@ struct msm_dsi_pll *msm_dsi_pll_7nm_init(struct platform_device *pdev, int id) pll->max_rate = 3500000000UL; if (pll->type == MSM_DSI_PHY_7NM_V4_1) { pll->min_rate = 600000000UL; - pll->max_rate = 5000000000UL; + pll->max_rate = (unsigned long)5000000000ULL; /* workaround for max rate overflowing on 32-bit builds: */ pll->max_rate = max(pll->max_rate, 0xffffffffUL); } |