diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_cp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cp.c b/drivers/gpu/drm/radeon/radeon_cp.c index 7b37a4906377..4f5d1e996217 100644 --- a/drivers/gpu/drm/radeon/radeon_cp.c +++ b/drivers/gpu/drm/radeon/radeon_cp.c | |||
@@ -1777,7 +1777,7 @@ int radeon_master_create(struct drm_device *dev, struct drm_master *master) | |||
1777 | return -ENOMEM; | 1777 | return -ENOMEM; |
1778 | 1778 | ||
1779 | /* prebuild the SAREA */ | 1779 | /* prebuild the SAREA */ |
1780 | sareapage = max(SAREA_MAX, PAGE_SIZE); | 1780 | sareapage = max_t(unsigned long, SAREA_MAX, PAGE_SIZE); |
1781 | ret = drm_addmap(dev, 0, sareapage, _DRM_SHM, _DRM_CONTAINS_LOCK|_DRM_DRIVER, | 1781 | ret = drm_addmap(dev, 0, sareapage, _DRM_SHM, _DRM_CONTAINS_LOCK|_DRM_DRIVER, |
1782 | &master_priv->sarea); | 1782 | &master_priv->sarea); |
1783 | if (ret) { | 1783 | if (ret) { |